1 # Contributor: Matthew Bauer <mjbauer95@gmail.com>
6 pkgdesc="libdraw, drawing library from suckless.org"
8 url="http://hg.suckless.org/libdraw"
12 makedepends=('mercurial' 'gcc' 'binutils' 'make' 'sed' 'coreutils')
21 md5sums=() #generate with 'makepkg -g'
23 _hgroot="http://hg.suckless.org/"
28 msg "Connecting to Mercurial server...."
30 if [ -d $_hgrepo ] ; then
33 hg pull -u || return 1
34 msg "The local files are updated."
36 hg clone $_hgroot $_hgrepo || return 1
39 msg "Mercurial checkout done or server timeout"
40 msg "Starting make..."
42 rm -rf "$srcdir/$_hgrepo-build"
43 cp -r "$srcdir/$_hgrepo" "$srcdir/$_hgrepo-build"
44 cd "$srcdir/$_hgrepo-build"
46 make X11INC=/usr/include/X11 X11LIB=/usr/lib/X11
50 cd "$srcdir/$_hgrepo-build"
52 make PREFIX=/usr DESTDIR=$pkgdir install
54 install -m644 -D LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE