1 # Maintainer: Dmitrij D. Czarkoff <czarkoff@gmail.com>
5 pkgdesc="A world class backgammon application"
7 url="http://www.gnubg.org/"
9 depends=('python' 'gtkglext' 'bison' 'flex')
10 makedepends=('cvs' 'openssh')
13 source=('gnubg.desktop')
14 md5sums=('80c17298770dceebd9c91beedab0ac29')
20 if [ -f $SRCDEST/${pkgname}.tar.gz ]
22 msg "Unpacking previous sources"
23 tar xzf $SRCDEST/${pkgname}.tar.gz
26 msg "Connecting to $_cvsmod.sourceforge.net CVS server...."
29 if [[ -d "${_cvsmod}/CVS" ]]; then
33 cvs -z3 -d:pserver:anonymous@cvs.savannah.gnu.org:/sources/gnubg co $_cvsmod
38 msg "CVS checkout done"
40 msg "Backing up source tree"
41 tar czf $SRCDEST/${pkgname}.tar.gz ${_cvsmod}
43 msg "Starting make..."
45 cd "${srcdir}/${_cvsmod}"
47 ./autogen.sh || return 1
48 ./configure --prefix=/usr --bindir=/usr/bin --sysconfdir=/etc --mandir=/usr/share/man || return 1
53 install -m 644 -D "${srcdir}/gnubg.desktop" "${pkgdir}/usr/share/applications/gnubg.desktop"
54 cd "${srcdir}/${_cvsmod}"
55 make DESTDIR="$pkgdir/" install
58 # vim:set ts=2 sw=2 et: