diff --git a/srcpkgs/pkgconf/template b/srcpkgs/pkgconf/template index e94fd6cceb4..03fd5ed92f4 100644 --- a/srcpkgs/pkgconf/template +++ b/srcpkgs/pkgconf/template @@ -5,18 +5,24 @@ revision=2 short_desc="Provides compiler and linker configuration" maintainer="Enno Boland " 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} }