updated on Wed Jan 11 00:07:16 UTC 2012
[aur-mirror.git] / aria2-git / PKGBUILD
blob13f1685fef1f32a513dab3104742caaa1d1c3788
1 pkgname=aria2-git
2 pkgver=20110525
3 pkgrel=1
4 pkgdesc="Download utility that supports HTTP(S), FTP, BitTorrent, and Metalink"
5 arch=(i686 x86_64)
6 url="http://aria2.sourceforge.net/"
7 license=(GPL)
8 depends=(gnutls libxml2 sqlite3 c-ares ca-certificates)
9 makedepends=(git cppunit asciidoc)
10 provides=(aria2)
11 conflicts=(aria2 aria2-daemon-svn)
12 source=(aria2.conf aria2.d)
13 md5sums=(4ac35c66fb40ef8f35e8e280ad6f30f3 d22416c1463a26d3c4642dfbd60fd96b)
14 install=aria2-git.install
15 _gitroot="https://github.com/tatsuhiro-t/aria2.git"
16 _gitname="aria2"
18 build(){
19   cd "$srcdir"
20   if [ -d $_gitname ] ; then
21     cd $_gitname && git pull origin
22   else
23     git clone $_gitroot $_gitname
24   fi
25   rm -rf "$srcdir/$_gitname-build"
26   git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
27   cd "$srcdir/$_gitname-build"
30   autoreconf -i
31   ./configure --prefix=/usr --with-ca-bundle=/etc/ssl/certs/ca-certificates.crt
32   make
35 package() {
36   cd "$srcdir/$_gitname-build"
37   install -D -m755 $srcdir/aria2.d $pkgdir/etc/rc.d/aria2
38   install -D -m644 $srcdir/aria2.conf $pkgdir/etc/aria2.conf
39   make DESTDIR="$pkgdir/" install
40