updated on Tue Jan 10 12:02:00 UTC 2012
[aur-mirror.git] / libogc / PKGBUILD
blobad4d798232b27d3a525511a13e896ae969cf5eeb
1 # Maintainer: Tiago Camargo <tcamargo@gmail.com>
2 # Maintainer: Aaron Lindsay <aaron@aaronlindsay.com>
3 pkgname=libogc
4 pkgver=1.8.8
5 _pkgverexamples_gcn=20110620
6 _pkgverexamples_wii=20110620
7 pkgrel=1
8 pkgdesc='Library for Nintendo Gamecube and Wii development.'
9 arch=('i686' 'x86_64')
10 url='http://www.devkitpro.org/'
11 license=('custom')
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')
24 build() {
25         source /etc/profile.d/devkitppc.sh
26         cd "${srcdir}"
27         make || return 1
28         export DEVKITPRO="${pkgdir}/opt/devkitpro"
29         mkdir -p "${DEVKITPRO}"
30         make install
31         
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 "{}" \; 
37         
38         install -Dm644 "${srcdir}/libogc_license.txt" "${pkgdir}/usr/share/licenses/${pkgname}/libogc_license.txt"