1 # Maintainer: Tiago Camargo <tcamargo@gmail.com>
2 # Maintainer: Aaron Lindsay <aaron@aaronlindsay.com>
5 _pkgverexamples_gcn=20110620
6 _pkgverexamples_wii=20110620
8 pkgdesc='Library for Nintendo Gamecube and Wii development.'
10 url='http://www.devkitpro.org/'
12 options=(!strip libtool)
13 depends=('devkitppc>=r22')
14 makedepends=('findutils')
15 source=("http://downloads.sourceforge.net/sourceforge/devkitpro/${pkgname}-src-${pkgver}.tar.bz2"
16 "http://downloads.sourceforge.net/sourceforge/devkitpro/wii-examples-${_pkgverexamples_wii}.tar.bz2"
17 "http://downloads.sourceforge.net/sourceforge/devkitpro/gamecube-examples-${_pkgverexamples_gcn}.tar.bz2")
18 noextract=("wii-examples-${_pkgverexamples_wii}.tar.bz2"
19 "gamecube-examples-${_pkgverexamples_gcn}.tar.bz2")
20 md5sums=('60e48c0fc4698e2feeca1349f0c04d06'
21 '6c626ebe3f0db1e67d524312c74c47cd'
22 'd4f4e1e5177055a5770ce07d6bbe2f40')
25 source /etc/profile.d/devkitppc.sh
28 export DEVKITPRO="${pkgdir}/opt/devkitpro"
29 mkdir -p "${DEVKITPRO}"
32 mkdir -p "${DEVKITPRO}/examples/"{wii,gamecube}
33 tar xfj "wii-examples-${_pkgverexamples_wii}.tar.bz2" -C "${DEVKITPRO}/examples/wii"
34 tar xfj "gamecube-examples-${_pkgverexamples_gcn}.tar.bz2" -C "${DEVKITPRO}/examples/gamecube"
35 chown -R root:root "${DEVKITPRO}/examples/"{wii,gamecube}
36 find "${DEVKITPRO}/examples/"{wii,gamecube} -type d -exec chmod +xr "{}" \;
38 install -Dm644 "${srcdir}/libogc_license.txt" "${pkgdir}/usr/share/licenses/${pkgname}/libogc_license.txt"