diff options
Diffstat (limited to 'main/aria2')
-rw-r--r-- | main/aria2/APKBUILD | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/main/aria2/APKBUILD b/main/aria2/APKBUILD new file mode 100644 index 000000000..66fff9e8c --- /dev/null +++ b/main/aria2/APKBUILD @@ -0,0 +1,42 @@ +# Contributor: Jeff Bilyk <jbilyk@gmail.com> +# Maintainer: Natanael Copa <ncopa@alpinelinux.org> +pkgname=aria2 +pkgver=1.14.1 +pkgrel=1 +pkgdesc="Download utility for HTTP(S), FTP, Bittorrent, and Metalink" +url="http://aria2.sourceforge.net" +arch="all" +license="GPL" +depends="ca-certificates" +depends_dev="gnutls-dev expat-dev sqlite-dev c-ares-dev" +makedepends="$depends_dev" +install="" +subpackages="$pkgname-doc" +source="http://downloads.sourceforge.net/aria2/aria2-$pkgver.tar.bz2" + +_builddir="$srcdir"/$pkgname-$pkgver +prepare() { + local i + cd "$_builddir" + for i in $source; do + case $i in + *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; + esac + done +} + +build() { + cd "$_builddir" + ./configure --prefix=/usr \ + --disable-nls \ + --with-ca-bundle=/etc/ssl/certs/ca-certificates.crt \ + || return 1 + make +} + +package() { + cd "$_builddir" + make DESTDIR="$pkgdir" install +} + +md5sums="3a23844ab3e1460eb7e6dac9b5dd798c aria2-1.14.1.tar.bz2" |