void-packages/srcpkgs/aria2/template

39 lines
1.3 KiB
Bash

# Template file for 'aria2'
pkgname=aria2
version=1.34.0
revision=3
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 libressl-devel sqlite-devel
zlib-devel"
depends="ca-certificates"
checkdepends="libcppunit-devel"
short_desc="Lightweight multi-protocol/multi-source command-line download utility"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
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=3a44a802631606e138a9e172a3e9f5bcbaac43ce2895c1d8e2b46f30487e77a3
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
}
}