summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 11742c27118f60cf567a61be41b1bcb262e45c20 (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
41
pkgname=joyosc-git
_name=joyosc

pkgrel=2
pkgver=0.4.0.r14.g5caf4ac
source=("git+https://github.com/danomatika/joyosc.git")
md5sums=('SKIP')

depends=('sdl2' 'liblo' 'tinyxml2')
makedepends=('sdl2' 'liblo' 'tinyxml2')

arch=(x86_64 i686 armv6l armv7h)

pkgver() {
  cd "$srcdir/$_name"
  git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

prepare() {
cd "$srcdir/$_name"

git submodule init
git submodule update --recommend-shallow
}

build() {
cd "$srcdir/$_name"

sh autogen.sh
./configure --prefix=/usr
make PREFIX=/usr
}

package () {
cd "$srcdir"/"$_name"

make DESTDIR="$pkgdir" install

cd "$pkgdir"
rm usr/share/test.xml # why is this here?
}