updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / isempty-hg / PKGBUILD
blobc9e2d9592f430695ad54bdef673373df31eb237c
1 # Maintainer: Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
3 _name=isempty
4 pkgname=$_name-hg
5 pkgver=1
6 pkgrel=1
7 pkgdesc='Check file emptyness.'
8 arch=('i686' 'x86_64')
9 url='http://hg.last-exile.org/isempty/'
10 license=('GPL3')
11 provides=('isempty')
12 conflicts=('isempty')
14 _hgtrunk=http://hg.last-exile.org/isempty/
15 _hgmod=$_name
17 build() {
18   cd "$srcdir"
20   if [ -d "$_hgmod/.hg" ]; then
21     cd "$_hgmod"
22     hg pull -u
23   else
24     hg clone "$_hgtrunk" "$_hgmod"
25     cd "$_hgmod"
26   fi
28   autoreconf -i
29   ./configure --prefix=/usr
30   make
33 package() {
34   cd "$srcdir/$_hgmod"
35   make DESTDIR="$pkgdir/" install