summaryrefslogtreecommitdiff
path: root/opt/aria2/MAKEPKG
diff options
context:
space:
mode:
Diffstat (limited to 'opt/aria2/MAKEPKG')
-rw-r--r--opt/aria2/MAKEPKG45
1 files changed, 45 insertions, 0 deletions
diff --git a/opt/aria2/MAKEPKG b/opt/aria2/MAKEPKG
new file mode 100644
index 0000000..0a66e45
--- /dev/null
+++ b/opt/aria2/MAKEPKG
@@ -0,0 +1,45 @@
+#!/bin/mkpkg
+# description: Download utility supporting HTTP(S), FTP, BitTorrent
+# url: https://aria2.github.io/
+
+name=aria2
+version=1.37.0
+release=1
+depends=(libressl libxml2 zlib)
+source=(https://github.com/aria2/aria2/releases/download/release-$version/$name-$version.tar.xz)
+
+sha256sums=(
+ "60a420ad7085eb616cb6e2bdf0a7206d68ff3d37fb5a956dc44242eb2f79b66b"
+)
+
+i
+patch() {
+ cd $name-$version
+ sed -i 's|^#endif // D_COMMON_H|#include <iterator>\n&|' src/common.h
+}
+
+build() {
+ cd $name-$version
+
+ ./configure \
+ --prefix=/usr \
+ --disable-nls \
+ --without-gnutls \
+ --without-libnettle \
+ --without-libgcrypt \
+ --with-openssl
+
+ make
+ make DESTDIR=$PKG install
+
+ rm -rf $PKG/usr/share/man/ru
+ rm -rf $PKG/usr/share/man/pt
+ rm -rf $PKG/usr/share/doc
+}
+
+signify() {
+ untrusted comment: public key
+ RWTZ9IduCSQ/mL8337TEUinPwT92xFEUpD92hkS7IxcOnzTt9QdpohT3
+}
+
+# vim: filetype=sh