updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / libttdht / PKGBUILD
blob86544b02bb18d67ec4a4c77c52fe43142c4c60db
1 # Maintainer: Alf <naihe2010@126.com>
3 pkgname=libttdht
5 pkgver=20110706
7 pkgrel=1
8 pkgdesc='DHT C library'
9 arch=('i686' 'x86_64')
10 url='http://naihe2010.github.com/libttdht/index.html'
11 license=('GPLv2')
12 depends=('openssl')
13 makedepends=('git')
15 _gitroot='http://github.com/naihe2010/libttdht.git'
16 _gitname='libttdht'
18 build() {
19   cd "$srcdir"
21   if [ -d $_gitname ] ; then
22     cd $_gitname && git pull origin
23   else
24     git clone $_gitroot
25     cd $_gitname
26   fi
28   sh autogen.sh && ./configure --prefix=/usr
29   make
32 package() {
33   cd "$srcdir/$_gitname"
34   make DESTDIR="$pkgdir/" install
36   make clean