1 # Contributor: Schnouki <thomas.jost@gmail.com>
2 # Contributor: Vithon <ratm@archlinux.us>
6 pkgdesc="A complete music and sound solution for the Nintendo DS and GBA"
8 url="http://www.maxmod.org/"
10 #makedepends=('devkitarm' 'libnds')
11 source=(http://downloads.sourceforge.net/sourceforge/devkitpro/$pkgname-gba-$pkgver.tar.bz2
12 http://downloads.sourceforge.net/sourceforge/devkitpro/$pkgname-nds-$pkgver.tar.bz2)
13 md5sums=('9646bbdb3f6e875b56d0e255e0838de5'
14 '5114792eae9318b648b463e04f2b0292')
15 noextract=($pkgname-gba-$pkgver.tar.bz2
16 $pkgname-nds-$pkgver.tar.bz2)
20 mkdir -p $srcdir/$pkgname-gba-$pkgver
21 mkdir -p $srcdir/$pkgname-nds-$pkgver
22 tar -xjvf $pkgname-gba-$pkgver.tar.bz2 -C $pkgname-gba-$pkgver
23 tar -xjvf $pkgname-nds-$pkgver.tar.bz2 -C $pkgname-nds-$pkgver
24 mkdir -p $pkgdir/opt/devkitpro/libgba/include
25 mkdir -p $pkgdir/opt/devkitpro/libgba/lib
26 mkdir -p $pkgdir/opt/devkitpro/libnds/include
27 mkdir -p $pkgdir/opt/devkitpro/libnds/lib
28 mkdir -p $pkgdir/usr/share/licenses/$pkgname
29 # source /etc/profile.d/devkitarm.sh
31 mv $srcdir/$pkgname-nds-$pkgver/* $pkgdir/opt/devkitpro/libnds
32 mv $srcdir/$pkgname-gba-$pkgver/* $pkgdir/opt/devkitpro/libgba
34 ln -s /opt/devkitpro/libnds/${pkgname}_license.txt $pkgdir/usr/share/licenses/$pkgname/${pkgname}_license.txt