void-packages/srcpkgs/pkgconf/template
Érico Nogueira d6ef62b5be pkgconf: update to 1.8.0, split -devel and libpkgconf.
We used to ship a static library in the main package, which was
accidental. We now ship it in pkgconf-devel package.
2021-08-18 15:50:36 -03:00

44 lines
1.1 KiB
Bash

# Template file for 'pkgconf'
pkgname=pkgconf
version=1.8.0
revision=1
bootstrap=yes
build_style=gnu-configure # cmake and meson also available
checkdepends="kyua"
short_desc="Provides compiler and linker configuration"
maintainer="Enno Boland <gottox@voidlinux.org>"
license="MIT"
homepage="http://pkgconf.org/"
changelog="https://raw.githubusercontent.com/pkgconf/pkgconf/master/NEWS"
distfiles="https://distfiles.dereferenced.org/pkgconf/pkgconf-${version}.tar.xz"
checksum=ef9c7e61822b7cb8356e6e9e1dca58d9556f3200d78acab35e4347e9d4c2bbaf
alternatives="
pkg-config:pkg-config:/usr/bin/pkgconf
pkg-config:pkg-config.1:/usr/share/man/man1/pkgconf.1
pkg-config:pkg.m4:/usr/share/aclocal/pkg.m4.pkgconf"
post_install() {
vlicense COPYING
# Suffix file that conflicts with pkg-config
mv ${DESTDIR}/usr/share/aclocal/pkg.m4{,.pkgconf}
}
libpkgconf_package() {
short_desc+=" - runtime library"
pkg_install() {
vmove "usr/lib/*.so.*"
}
}
pkgconf-devel_package() {
depends="libpkgconf>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove "usr/lib/*.a"
vmove "usr/lib/*.so"
}
}