void-packages/srcpkgs/apt/template

44 lines
1.3 KiB
Bash

# Template file for 'apt'
pkgname=apt
version=2.9.7
revision=1
build_style=cmake
configure_args="-DDPKG_DATADIR=/usr/share/dpkg -DCURRENT_VENDOR=debian
-DDOCBOOK_XSL=/usr/share/xsl/docbook"
hostmakedepends="dpkg pkg-config docbook-xsl doxygen po4a w3m libxslt triehash"
makedepends="db-devel gnutls-devel bzip2-devel liblzma-devel liblz4-devel
libzstd-devel libseccomp-devel eudev-libudev-devel dpkg-devel gtest-devel
libgcrypt-devel xxHash-devel"
checkdepends="dpkg runit-void tar"
short_desc="APT package management tools"
maintainer="Elie ROUDNINSKI <xademax@gmail.com>"
license="GPL-2.0-or-later"
homepage="https://salsa.debian.org/apt-team/apt"
distfiles="https://github.com/Debian/apt/archive/${version}.tar.gz"
checksum=c7fac36575c6a00f81caebc8947657943c4350a10c499833294adf723e013336
case "$XBPS_TARGET_MACHINE" in
*-musl) broken="error: void value not ignored as it ought to be" ;;
esac
pre_check() {
export GTEST_FILTER="-FileUtlTest.GetTempDir"
}
apt-devel_package() {
short_desc+=" - development files"
depends="${sourcepkg}>=${version}_${revision}"
pkg_install() {
vmove usr/include
vmove "usr/lib/*.so"
}
}
apt-doc_package() {
short_desc+=" - documentation files"
depends="${sourcepkg}>=${version}_${revision}"
pkg_install() {
vmove usr/share/doc
}
}