Skip to content

Commit

Permalink
pkgconf: prepare for replacing pkg-config
Browse files Browse the repository at this point in the history
* libpkgconf is removed.
* provides pkg-config
* correctly conflicts with pkg-config
* set a link from /usr/bin/pkg-config to pkgconf

addresses void-linux#3391.
  • Loading branch information
Enno Boland committed Oct 4, 2018
1 parent d70d910 commit 50505bf
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 15 deletions.
1 change: 0 additions & 1 deletion srcpkgs/pkgconf-devel

This file was deleted.

19 changes: 5 additions & 14 deletions srcpkgs/pkgconf/template
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
pkgname=pkgconf
version=1.5.3
revision=1
conflicts="pkg-config"
conflicts="pkg-config>=0"
provides="pkg-config-${version}_${revision}"
build_style=gnu-configure # cmake and meson also available
hostmakedepends="libtool"
checkdepends="kyua"
Expand All @@ -13,20 +14,10 @@ homepage="https://git.dereferenced.org/pkgconf/pkgconf"
changelog="https://git.dereferenced.org/pkgconf/pkgconf/raw/branch/master/NEWS"
distfiles="https://distfiles.dereferenced.org/pkgconf/${pkgname}-${version}.tar.xz"
checksum=d3468308553c94389dadfd10c4d1067269052b5364276a9d24a643c88485f715
configure_args="--disable-shared --disable-static"

post_install() {
vlicense COPYING
}

pkgconf-devel_package() {
depends="pkgconf-${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove usr/share/aclocal
vmove usr/share/man/man7
vmove "usr/lib/*.so"
vmove "usr/lib/*.a"
}
rm $DESTDIR/usr/include
ln -sr $DESTDIR/usr/bin/pkgconf $DESTDIR/usr/bin/pkg-config
}

0 comments on commit 50505bf

Please sign in to comment.