aports/main/pkgconf/APKBUILD
2023-09-03 04:27:36 +00:00

56 lines
1.3 KiB
Plaintext

# Maintainer: Ariadne Conill <ariadne@dereferenced.org>
pkgname=pkgconf
pkgver=2.0.3
pkgrel=0
pkgdesc="development framework configuration tools"
url="https://gitea.treehouse.systems/ariadne/pkgconf"
arch="all"
license="ISC"
replaces="pkgconfig"
provides="pkgconfig=1"
checkdepends="kyua atf"
subpackages="$pkgname-doc $pkgname-dev"
source="https://distfiles.ariadne.space/pkgconf/pkgconf-$pkgver.tar.xz
"
# secfixes:
# 1.9.4-r0:
# - CVE-2023-24056
build() {
./configure \
--build=$CBUILD \
--host=$CHOST \
--prefix=/usr \
--sysconfdir=/etc \
--mandir=/usr/share/man \
--infodir=/usr/share/info \
--localstatedir=/var \
--with-pkg-config-dir=/usr/local/lib/pkgconfig:/usr/local/share/pkgconfig:/usr/lib/pkgconfig:/usr/share/pkgconfig
make
}
check() {
make check
}
package() {
make DESTDIR="$pkgdir" install
ln -s pkgconf "$pkgdir"/usr/bin/pkg-config
}
dev() {
default_dev
# Move pkg-config back to main package (default_dev implicitly moves
# files /usr/bin/*-config to -dev).
mv "$subpkgdir"/usr/bin/pkg-config "$pkgdir"/usr/bin/
mkdir -p "$pkgdir"/usr/share/aclocal/
mv "$subpkgdir"/usr/share/aclocal/pkg.m4 "$pkgdir"/usr/share/aclocal/
}
sha512sums="
cdbacd2894f9e5767dd7407ac4d4301a769ee0c6122a1219ce2c89d1a2019056d150cc42b98fda7fb0bd3d167fda2b897a1a92619f64ec5bb02ac9dbc31e445e pkgconf-2.0.3.tar.xz
"