1 # Maintainer: Andreas B. Wagner <AndreasBWagner@pointfree.net>
2 # Contributor: v2punkt0 <v2punkt0@gmail.com>
7 pkgdesc="The latest hg pull of dmenu"
8 url="http://tools.suckless.org/dmenu/"
10 arch=('i686' 'x86_64')
12 makedepends=('mercurial')
16 _hgroot='http://hg.suckless.org'
21 msg "Connecting to Mercurial server...."
23 if [ -d $_hgrepo ] ; then
25 hg pull -u || return 1
26 msg "The local files are updated."
28 hg clone $_hgroot $_hgrepo || return 1
31 msg "Mercurial checkout done or server timeout"
32 msg "Starting make..."
34 rm -rf "$srcdir/$_hgrepo-build"
35 cp -r "$srcdir/$_hgrepo" "$srcdir/$_hgrepo-build"
36 cd "$srcdir/$_hgrepo-build"
46 cd "$srcdir/$_hgrepo-build"
47 install -Dm644 ${srcdir}/${_hgrepo-build}/LICENSE "${pkgdir}/usr/share/licenses/$pkgname/LICENSE"
48 make MANPREFIX="$pkgdir/usr/share/man" PREFIX="$pkgdir" clean install || return 1
51 # vim:set ts=2 sw=2 et: