updated on Thu Jan 12 04:00:44 UTC 2012
[aur-mirror.git] / maxmod / PKGBUILD
blobedc99c2a9e2115386170a3a18e6fa6eb2442d469
1 # Contributor: Schnouki <thomas.jost@gmail.com>
2 # Contributor: Vithon <ratm@archlinux.us>
3 pkgname=maxmod
4 pkgver=1.0.6
5 pkgrel=1
6 pkgdesc="A complete music and sound solution for the Nintendo DS and GBA"
7 arch=(i686 x86_64)
8 url="http://www.maxmod.org/"
9 license=('custom')
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)
18 build() {
19   cd $srcdir
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