pkgconf: add alternatives, drop conflict with pkg-config

This commit is contained in:
maxice8 2018-10-04 05:03:27 -03:00 committed by Enno Boland
parent 1e80f54355
commit c0a6cd75a3

View File

@ -5,18 +5,24 @@ revision=2
short_desc="Provides compiler and linker configuration"
maintainer="Enno Boland <gottox@voidlinux.eu>"
license="MIT"
checkdepends="kyua"
homepage="https://git.dereferenced.org/pkgconf/pkgconf"
build_style=gnu-configure # cmake and meson also available
configure_args="--disable-shared --disable-static"
checkdepends="kyua"
changelog="https://git.dereferenced.org/pkgconf/pkgconf/raw/branch/master/NEWS"
distfiles="https://distfiles.dereferenced.org/pkgconf/${pkgname}-${version}.tar.xz"
checksum=d3468308553c94389dadfd10c4d1067269052b5364276a9d24a643c88485f715
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
rm -r $DESTDIR/usr/include
ln -sr $DESTDIR/usr/bin/pkgconf $DESTDIR/usr/bin/pkg-config
ln -sr $DESTDIR/usr/share/man/man1/pkgconf.1 \
$DESTDIR/usr/share/man/man1/pkg-config.1
rm -rf $DESTDIR/usr/include
# Suffix file that conflicts with pkg-config
mv ${DESTDIR}/usr/share/aclocal/pkg.m4{,.pkgconf}
}