summaryrefslogtreecommitdiff
path: root/pcr
diff options
context:
space:
mode:
authorDenis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>2019-04-14 20:33:18 +0200
committerDenis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>2019-04-14 20:34:57 +0200
commitd59f7bd3f7e041c5312525204fb9bd4fe9f9748d (patch)
tree64d7a25ebe0e005ae2b60d6baff8dec197b3d852 /pcr
parent09f9e340c97465339d27094b352f3890e80cefed (diff)
downloadabslibre-d59f7bd3f7e041c5312525204fb9bd4fe9f9748d.tar.gz
abslibre-d59f7bd3f7e041c5312525204fb9bd4fe9f9748d.tar.bz2
abslibre-d59f7bd3f7e041c5312525204fb9bd4fe9f9748d.zip
pcr: add libaria2
This is a dependency of kiwix-tools Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
Diffstat (limited to 'pcr')
-rw-r--r--pcr/libaria2/PKGBUILD44
1 files changed, 44 insertions, 0 deletions
diff --git a/pcr/libaria2/PKGBUILD b/pcr/libaria2/PKGBUILD
new file mode 100644
index 000000000..38ff30450
--- /dev/null
+++ b/pcr/libaria2/PKGBUILD
@@ -0,0 +1,44 @@
+# Maintainer (AUR): hashworks <mail@hashworks.net>
+
+_pkgname=aria2
+pkgname=libaria2
+pkgver=1.34.0
+pkgrel=2
+pkgdesc='Download utility that supports HTTP(S), FTP, BitTorrent, and Metalink. Build with --enable-libaria2'
+arch=(armv7h i686 x86_64)
+url='http://aria2.sourceforge.net/'
+license=('GPL')
+conflicts=('aria2')
+provides=('aria2')
+depends=('gnutls' 'libxml2' 'sqlite' 'c-ares' 'ca-certificates' 'libssh2')
+checkdepends=('cppunit')
+source=("https://github.com/tatsuhiro-t/aria2/releases/download/release-$pkgver/aria2-$pkgver.tar.xz")
+sha512sums=('80bc43e242c06acc95030021cb347b4ec230729f3d7e512ca1932941b34ef95c312a34007a226869e5d720839a400e66cdb072ccab5d42228d8cf3d828723dcc')
+
+build() {
+ cd $_pkgname-$pkgver
+
+ ./configure \
+ --prefix=/usr \
+ --with-ca-bundle=/etc/ssl/certs/ca-certificates.crt \
+ --enable-libaria2
+
+ make
+}
+
+check() {
+ cd $_pkgname-$pkgver
+ make check
+}
+
+package() {
+ cd $_pkgname-$pkgver
+ make DESTDIR="$pkgdir" install
+
+ # add bash completion
+ install -d "$pkgdir"/usr/share/bash-completion/completions
+ install -m644 "$pkgdir"/usr/share/doc/aria2/bash_completion/aria2c \
+ "$pkgdir"/usr/share/bash-completion/completions
+ rm -rf "$pkgdir"/usr/share/doc/aria2/bash_completion
+}
+