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 Nov 17, 2018
1 parent f723696 commit 1b87de9
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions srcpkgs/pkgconf/template
Original file line number Diff line number Diff line change
Expand Up @@ -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}
}

0 comments on commit 1b87de9

Please sign in to comment.