updated on Tue Jan 17 20:03:13 UTC 2012
[aur-mirror.git] / z88dk-cvs / PKGBUILD
blobda8c31f7c0114a64dd7e501ac8d11676b60e37ed
1 # Maintainer: John Schug <xtr dot xtrnet at gmail dot com>
2 pkgname=z88dk-cvs
3 pkgver=20100209
4 pkgrel=2
5 pkgdesc="A small C compiler for the Zilog Z80."
6 arch=('i686' 'x86_64')
7 url="http://z88dk.org"
8 license=('custom:The Clarified Artistic License')
9 groups=()
10 depends=('glibc')
11 makedepends=('cvs')
12 optdepends=()
13 provides=('z88dk')
14 conflicts=()
15 replaces=()
16 backup=(etc/profile)
17 options=()
18 install=INSTALL
19 source=()
20 noextract=()
21 md5sums=()
23 _cvsroot=":pserver:anonymous@z88dk.cvs.sourceforge.net:/cvsroot/z88dk"
24 _cvsmod="z88dk"
26 build() {
27   cd "$srcdir"
28   msg "Connecting to $_cvsmod.sourceforge.net CVS server...."
29   if [ -d $_cvsmod/CVS ]; then
30     cd $_cvsmod
31     cvs -z3 update -d
32   else
33     cvs -z3 -d $_cvsroot co -D $pkgver -f $_cvsmod
34     cd $_cvsmod
35   fi
37   msg "CVS checkout done or server timeout"
38   msg "Starting make..."
40   rm -rf "$srcdir/$_cvsmod-build"
41   cp -r "$srcdir/$_cvsmod" "$srcdir/$_cvsmod-build"
43   cd "$srcdir/$_cvsmod-build"
45   mkdir -p $pkgdir/usr/share/licenses/z88dk-cvs/
46   cp LICENSE $pkgdir/usr/share/licenses/z88dk-cvs
47   
48   mkdir "bin"
50   make || return 1
51   make prefix=/usr DESTDIR="$pkgdir/" install || return 1
53   echo "export ZCCCFG=/usr/share/z88dk/lib/config/" > $pkgdir/usr/share/z88dk/exports
54   echo "export Z80_OZFILES=/usr/share/z88dk/lib/" >> $pkgdir/usr/share/z88dk/exports
57 # vim:set ts=2 sw=2 et: