1 # Contributor: Shinlun Hsieh <yngwiexx@yahoo.com.tw>
6 pkgdesc="A portable Impulse Tracker clone"
8 url="http://chibitracker.berlios.de"
10 depends=('gcc-libs' 'sdl')
11 makedepends=('scons' 'unzip')
12 source=(http://download.berlios.de/${pkgname}/${pkgname}-${pkgver}.tar.gz \
13 $pkgname.desktop $pkgname.sh)
14 md5sums=('1dfd7c4b7ffbc7d1377393d040cd5433'
15 '197bdef02ae24e4c4534c3d1fb1e1dd0'
16 'd89671948da85245d25838db736d5070')
18 if [ "$CARCH" = "x86_64" ]; then
19 makedepends[${#makedepends[@]}]='patch'
20 source[${#source[@]}]='chibitracker-1.1-amd64.patch'
21 md5sums[${#md5sums[@]}]='c814ecb20737afaa10100ccaa78db1bf'
26 cd "$srcdir"/$pkgname-$pkgver
27 if [ "$CARCH" = "x86_64" ]; then
28 patch -Np0 -i $srcdir/chibitracker-1.1-amd64.patch || return 1
30 scons prefix=/usr || return 1
32 for x in *.zip; do unzip -q $x && rm $x; done
36 cd "$srcdir"/$pkgname-$pkgver
37 install -d $pkgdir/usr/share/${pkgname}/skins
39 install -d $pkgdir/usr/share/$pkgname/$x
40 install -m644 $x/* $pkgdir/usr/share/$pkgname/$x/
42 install -m755 program/$pkgname $pkgdir/usr/share/$pkgname/
43 install -Dm755 $srcdir/$pkgname.sh $pkgdir/usr/bin/$pkgname
44 install -Dm644 program/cticon.png $pkgdir/usr/share/pixmaps/$pkgname.png
45 install -Dm644 $srcdir/$pkgname.desktop $pkgdir/usr/share/applications/$pkgname.desktop
46 #scons install prefix="$pkgdir"/usr || return 1