Skip to content

Commit

Permalink
pkg-config: add alternatives
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 b84d06f commit d88a726
Showing 1 changed file with 15 additions and 4 deletions.
19 changes: 15 additions & 4 deletions srcpkgs/pkg-config/template
Original file line number Diff line number Diff line change
@@ -1,19 +1,30 @@
# Template build file for 'pkg-config'
# Template file for 'pkg-config'
pkgname=pkg-config
version=0.29.2
revision=1
revision=2
bootstrap=yes
build_style=gnu-configure
configure_args="--with-internal-glib --disable-host-tool"
# required for gcc6 bootstrap
hostmakedepends="gcc"
short_desc="System for managing library compile/link flags"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
homepage="http://pkgconfig.freedesktop.org/wiki/"
license="GPL-2"
distfiles="http://pkgconfig.freedesktop.org/releases/$pkgname-$version.tar.gz"
homepage="http://pkgconfig.freedesktop.org/wiki/"
distfiles="http://pkgconfig.freedesktop.org/releases/${pkgname}-${version}.tar.gz"
checksum=6fc69c01688c9458a57eb9a1664c9aba372ccda420a02bf4429fe610e7e7d591
alternatives="
pkg-config:pkg-config:/usr/bin/pkg-config.pkg-config
pkg-config:pkg-config.1:/usr/share/man/man1/pkg-config.1.pkg-config
pkg-config:pkg.m4:/usr/share/aclocal/pkg.m4.pkg-config"

case "$XBPS_TARGET_MACHINE" in
mips*) configure_args+=" glib_cv_stack_grows=no glib_cv_uscore=no" ;;
esac

post_install() {
# Add pkg-config suffix to files that are on alternatives
mv ${DESTDIR}/usr/bin/pkg-config{,.pkg-config}
mv ${DESTDIR}/usr/share/man/man1/pkg-config.1{,.pkg-config}
mv ${DESTDIR}/usr/share/aclocal/pkg.m4{,.pkg-config}
}

0 comments on commit d88a726

Please sign in to comment.