updated on Thu Jan 26 12:02:26 UTC 2012
[aur-mirror.git] / grrlib / PKGBUILD
blob58a71e8d8abb7eb0b02daf857ae9e67ae076ac2b
1 # Maintainer: Gerardo Marset <gammer1994@gmail.com>
2 pkgname=grrlib
3 pkgver=4.3.1
4 pkgrel=1
5 pkgdesc="A graphics library for Wii homebrew developers."
6 arch=('i686' 'x86_64')
7 url="http://grrlib.santo.fr/"
8 license=('MIT')
9 depends=('libfat-ogc')
10 #install=
11 options=(!strip)
12 source=("http://grrlib.googlecode.com/files/GRRLIB ${pkgver}.zip")
13 md5sums=('6f26de91730fe11abd6400b639b72a96')
15 build() {
16   local err="ERROR: DEVKITPPC and/or DEVKITPRO environment variable not found.
17 If you just istalled libogc, try running source /etc/profile.d/devkitppc.sh"
18   [ -z "$DEVKITPPC" ] && echo -e "$err" && exit 1
19   [ -z "$DEVKITPRO" ] && echo -e "$err" && exit 1
21   cd "$srcdir/GRRLIB/GRRLIB"
22   unset CFLAGS
23   make all
26 package() {
27   cd "$srcdir/GRRLIB"
28   install -Dm644 LICENCE.TXT "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
29   cd "GRRLIB"
31   export DEVKITPPC="${pkgdir}/${DEVKITPPC}"
32   export DEVKITPRO="${pkgdir}/${DEVKITPRO}"
34   make install
35   #return 1