updated on Sat Jan 14 12:12:45 UTC 2012
[aur-mirror.git] / dmenu-hg / PKGBUILD
blobe516afdf827ee7b55a7d2c58f78c4c97669ab566
1 # Maintainer: Andreas B. Wagner <AndreasBWagner@pointfree.net>
2 # Contributor: v2punkt0 <v2punkt0@gmail.com>
4 pkgname='dmenu-hg'
5 pkgver=433
6 pkgrel=2
7 pkgdesc="The latest hg pull of dmenu"
8 url="http://tools.suckless.org/dmenu/"
9 license='MIT'
10 arch=('i686' 'x86_64')
11 depends=('libx11')
12 makedepends=('mercurial')
13 conflicts=('dmenu')
14 provides=('dmenu')
16 _hgroot='http://hg.suckless.org'
17 _hgrepo='dmenu'
19 build() {
20   cd $srcdir
21   msg "Connecting to Mercurial server...."
23   if [ -d $_hgrepo ] ; then
24     cd $_hgrepo
25     hg pull -u || return 1
26     msg "The local files are updated."
27   else
28     hg clone $_hgroot $_hgrepo || return 1
29   fi
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"
38   #
39   # BUILD HERE
40   #
42   make || return 1
45 package(){
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: