void-packages/srcpkgs/pkgconf/template

45 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"
}
}