1 # Maintainer: John Schug <xtr dot xtrnet at gmail dot com>
5 pkgdesc="A small C compiler for the Zilog Z80."
8 license=('custom:The Clarified Artistic License')
23 _cvsroot=":pserver:anonymous@z88dk.cvs.sourceforge.net:/cvsroot/z88dk"
28 msg "Connecting to $_cvsmod.sourceforge.net CVS server...."
29 if [ -d $_cvsmod/CVS ]; then
33 cvs -z3 -d $_cvsroot co -D $pkgver -f $_cvsmod
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
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: