updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / z88dk / PKGBUILD
blob91a69a13245d5c83a5aa2835c858d62830a99529
1 # Maintainer: John Schug <xtr.xtrnet@gmail.com>
2 pkgname=z88dk
3 pkgver=1.9
4 pkgrel=1
5 pkgdesc="A small C compiler for the Zilog Z80."
6 arch=('i686')
7 url="http://z88dk.org"
8 license=('custom:The Clarified Artistic License')
9 groups=()
10 depends=('glibc')
11 makedepends=()
12 optdepends=()
13 provides=()
14 conflicts=()
15 replaces=()
16 backup=(etc/profile)
17 options=()
18 install=INSTALL
19 source=(http://downloads.sourceforge.net/project/z88dk/z88dk/1.9/$pkgname-src-$pkgver.tgz)
20 noextract=()
21 md5sums=('405de32baa962e30b8951270f5a4799d') #generate with 'makepkg -g'
23 build() {
24   cd "$srcdir/z88dk"
26   mkdir -p $pkgdir/usr/share/licenses/z88dk/
27   cp LICENSE $pkgdir/usr/share/licenses/z88dk
29   make || return 1
30   make prefix=/usr DESTDIR="$pkgdir/" install || return 1
32   echo "export ZCCCFG=/usr/share/z88dk/lib/config/" > $pkgdir/usr/share/z88dk/exports
33   echo "export Z80_OZFILES=/usr/share/z88dk/lib/" >> $pkgdir/usr/share/z88dk/exports
36 # vim:set ts=2 sw=2 et: