updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / libzip-hg / PKGBUILD
bloba1ea233926cc4ddb9f668e4282c0f6f5acb6c102
1 # Contributor: Abdallah Aly <l3thal8 @gmail. com>
3 pkgname=libzip-hg
4 pkgver=786
5 pkgrel=1
6 pkgdesc="libzip is a C library for reading, creating, and modifying zip archives"
7 arch=(i686 x86_64)
8 url="http://nih.at/libzip"
9 license=('GPL')
10 groups=()
11 depends=('zlib')
12 makedepends=('mercurial' 'cmake')
13 provides=(libzip)
14 conflicts=(libzip)
15 md5sums=() #generate with 'makepkg -g'
16 options=(!libtool)
17 _hgroot='http://hg.nih.at/'
18 _hgrepo='libzip'
20 build() {
21   cd "$srcdir/$pkgname-$pkgver"
24 # update the repo, else clone a new one
25         if [ -d $_hgrepo ]; then
26                 cd $_hgrepo
27                 make clean
28                 hg pull -u
29         else
30                 hg clone ${_hgroot}/${_hgrepo}
31                 cd $_hgrepo
32         fi
34 #  export CMAKE_PREFIX_PATH=/usr
35   cmake . \
36   -DCMAKE_INSTALL_PREFIX=/usr || return 1
37   make || return 1
38   make DESTDIR="$pkgdir/" install
39 #  mv $pkgdir/usr/local/* $pkgdir/usr/