Skip to content

Commit

Permalink
pkgconf: add alternatives, drop conflict with pkg-config
Browse files Browse the repository at this point in the history
  • Loading branch information
maxice8 authored and Enno Boland committed Oct 18, 2018
1 parent d88a726 commit f761c05
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions srcpkgs/pkgconf/template
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
pkgname=pkgconf
version=1.5.4
revision=2
conflicts="pkg-config>=0"
build_style=gnu-configure # cmake and meson also available
checkdepends="kyua"
short_desc="Provides compiler and linker configuration"
Expand All @@ -14,10 +13,16 @@ distfiles="https://distfiles.dereferenced.org/pkgconf/${pkgname}-${version}.tar.
checksum=d3468308553c94389dadfd10c4d1067269052b5364276a9d24a643c88485f715
configure_args="--disable-shared --disable-static"

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

0 comments on commit f761c05

Please sign in to comment.