summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 225a592f015b5627fa0d0b1cd365edf7d8c1b169 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# Maintainer: Matthias Gatto <uso.cosmo.ray at gmail dot com>

pkgname=sukeban-git
pkgver=r1180.70e0246
pkgrel=1
pkgdesc="FOSS JRPG about school and stuff, still heavilly in devlopement"


arch=('x86_64')

url='https://github.com/cosmo-ray/Sukeban'

licence=(LGPL3)

pkgver() {
	 cd "${srcdir}/Sukeban"
	 printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

depends=(yirl-git)

source=(git+https://github.com/cosmo-ray/Sukeban)
sha256sums=("SKIP")

build() {
	 cd "${srcdir}/Sukeban"
	 git submodule update --init --recursive
}

package() {
	 cd "${srcdir}/Sukeban"
	 mkdir -p "$pkgdir/usr/share/sukeban"
	 cp -rv * "$pkgdir/usr/share/sukeban/"
	 mkdir -p "$pkgdir/usr/bin/"
	 echo "#!/bin/sh" > "$pkgdir/usr/bin/sukeban"
	 echo "yirl-loader --binary-root-path /usr/share/yirl/ -d /usr/share/sukeban/ -L" >> "$pkgdir/usr/bin/sukeban"
	 chmod +x "$pkgdir/usr/bin/sukeban"
	 mkdir -p "$pkgdir/usr/share/applications"
	 cp sukeban.desktop "$pkgdir/usr/share/applications/"
}