summaryrefslogtreecommitdiff
path: root/libre-testing/pkgconf/PKGBUILD
diff options
context:
space:
mode:
authorBruno Cichon <ebrasca@librepanther.com>2018-10-02 00:52:16 +0200
committerBruno Cichon <ebrasca@librepanther.com>2018-10-02 00:52:16 +0200
commit7201d68c2089f4e83126bcfc72e0658ce920a084 (patch)
tree606328683e0a12304967f4166fd6bd544564d450 /libre-testing/pkgconf/PKGBUILD
parent7b0e23aa952d001065f3f2432e4a6c57ac581b5c (diff)
downloadabslibre-7201d68c2089f4e83126bcfc72e0658ce920a084.tar.gz
abslibre-7201d68c2089f4e83126bcfc72e0658ce920a084.tar.bz2
abslibre-7201d68c2089f4e83126bcfc72e0658ce920a084.zip
Add some base-devel packages for ppc64le
Diffstat (limited to 'libre-testing/pkgconf/PKGBUILD')
-rw-r--r--libre-testing/pkgconf/PKGBUILD80
1 files changed, 80 insertions, 0 deletions
diff --git a/libre-testing/pkgconf/PKGBUILD b/libre-testing/pkgconf/PKGBUILD
new file mode 100644
index 000000000..612c90764
--- /dev/null
+++ b/libre-testing/pkgconf/PKGBUILD
@@ -0,0 +1,80 @@
+# Maintainer: Jan Alexander Steffens (heftig) <jan.steffens@gmail.com>
+# Contributor: Johannes Löthberg <johannes@kyriasis.com>
+# Contributor: Piotr Gorski <lucjan.lucjanov@gmail.com>
+# Contributor: Lucy <lucy@luz.lu>
+# Contributor: Bartlomiej Piotrowski <nospam@bpiotrowski.pl>
+
+pkgname=pkgconf
+pkgver=1.5.3
+pkgrel=1
+pkgdesc="Package compiler and linker metadata toolkit"
+url="https://git.dereferenced.org/pkgconf/pkgconf"
+license=(custom:ISC)
+arch=('x86_64' 'ppc64le')
+depends=(glibc sh)
+makedepends=(git)
+provides=(pkg-config pkgconfig)
+conflicts=(pkg-config)
+replaces=(pkg-config)
+groups=(base-devel)
+_commit=101b99b5b59d58fe6c6dc46ae22edb049cc0bd3a # tags/pkgconf-1.5.3
+source=("git+$url#commit=$_commit" platform-pkg-config.in)
+sha256sums=('SKIP'
+ '7c61338fbd83f9783d805c2f2f97b426977895a2f4b79e0ae5bc8e9d7996edaa')
+
+_pcdirs=/usr/lib/pkgconfig:/usr/share/pkgconfig
+_libdir=/usr/lib
+_includedir=/usr/include
+
+pkgver() {
+ cd $pkgname
+ git describe --tags | sed 's/^pkgconf-//;s/-/+/g'
+}
+
+prepare() {
+ mkdir build
+ cd $pkgname
+ ./autogen.sh
+}
+
+build() {
+ cd build
+ ../$pkgname/configure \
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ --with-pkg-config-dir="$_pcdirs" \
+ --with-system-libdir="$_libdir" \
+ --with-system-includedir="$_includedir" \
+ --disable-static
+ make
+}
+
+package() {
+ DESTDIR="$pkgdir" make -C build install
+
+ # From https://src.fedoraproject.org/rpms/pkgconf/
+ sed -e "s|@TARGET_PLATFORM@|$CHOST|g" \
+ -e "s|@PKGCONF_LIBDIRS@|$_pcdirs|g" \
+ -e "s|@PKGCONF_SYSLIBDIR@|$_libdir|g" \
+ -e "s|@PKGCONF_SYSINCDIR@|$_includedir|g" \
+ platform-pkg-config.in |
+ install -D /dev/stdin "$pkgdir/usr/bin/$CHOST-pkg-config"
+ ln -s $CHOST-pkg-config "$pkgdir/usr/bin/pkg-config"
+
+ # Multilib
+ if [[ $CARCH = x86_64 ]]; then
+ _host32=${CHOST/x86_64/i686}
+ sed -e "s|@TARGET_PLATFORM@|$_host32|g" \
+ -e "s|@PKGCONF_LIBDIRS@|${_pcdirs/lib/lib32}|g" \
+ -e "s|@PKGCONF_SYSLIBDIR@|${_libdir/lib/lib32}|g" \
+ -e "s|@PKGCONF_SYSINCDIR@|$_includedir|g" \
+ platform-pkg-config.in |
+ install -D /dev/stdin "$pkgdir/usr/bin/$_host32-pkg-config"
+ ln -s $_host32-pkg-config "$pkgdir/usr/bin/pkg-config-32"
+ fi
+
+ ln -s pkgconf.1 "$pkgdir/usr/share/man/man1/pkg-config.1"
+ install -Dt "$pkgdir/usr/share/licenses/$pkgname" -m644 $pkgname/COPYING
+}
+
+# vim:set sw=2 et: