void-packages/srcpkgs/aria2/template
2021-08-26 08:31:47 -03:00

39 lines
1.3 KiB
Bash

# Template file for 'aria2'
pkgname=aria2
version=1.36.0
revision=1
build_style=gnu-configure
configure_args="--with-openssl --with-libexpat --without-gnutls
--with-ca-bundle=/etc/ssl/certs/ca-certificates.crt
--with-bashcompletiondir=/usr/share/bash-completion/completions
--enable-libaria2"
hostmakedepends="pkg-config"
makedepends="c-ares-devel expat-devel gmp-devel openssl-devel sqlite-devel
zlib-devel"
depends="ca-certificates"
checkdepends="libcppunit-devel"
short_desc="Lightweight multi-protocol/multi-source command-line download utility"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later"
homepage="https://aria2.github.io/"
changelog="https://raw.githubusercontent.com/aria2/aria2/master/NEWS"
distfiles="https://github.com/aria2/aria2/releases/download/release-${version}/aria2-${version}.tar.xz"
checksum=58d1e7608c12404f0229a3d9a4953d0d00c18040504498b483305bcb3de907a5
libaria2_package() {
short_desc="Multi-Protocol/multi-source download library"
pkg_install() {
vmove "usr/lib/libaria2.so.*"
}
}
libaria2-devel_package() {
short_desc="Multi-Protocol/multi-source download library - development files"
depends="libaria2>=${version}_${revision} ${makedepends}"
pkg_install() {
vmove usr/include
vmove "usr/lib/*.la"
vmove "usr/lib/*.so"
vmove usr/lib/pkgconfig
}
}