[arch-commits] Commit in pkgconf/repos (3 files)

Jan Steffens heftig at archlinux.org
Fri May 25 22:18:18 UTC 2018


    Date: Friday, May 25, 2018 @ 22:18:17
  Author: heftig
Revision: 324992

archrelease: copy trunk to testing-x86_64

Added:
  pkgconf/repos/testing-x86_64/
  pkgconf/repos/testing-x86_64/PKGBUILD
    (from rev 324991, pkgconf/trunk/PKGBUILD)
  pkgconf/repos/testing-x86_64/platform-pkg-config.in
    (from rev 324991, pkgconf/trunk/platform-pkg-config.in)

------------------------+
 PKGBUILD               |   82 +++++++++++++++++++++++++++++++++++++++++++++++
 platform-pkg-config.in |   11 ++++++
 2 files changed, 93 insertions(+)

Copied: pkgconf/repos/testing-x86_64/PKGBUILD (from rev 324991, pkgconf/trunk/PKGBUILD)
===================================================================
--- testing-x86_64/PKGBUILD	                        (rev 0)
+++ testing-x86_64/PKGBUILD	2018-05-25 22:18:17 UTC (rev 324992)
@@ -0,0 +1,82 @@
+# $Id$
+# Maintainer: Jan Alexander Steffens (heftig) <jan.steffens at gmail.com>
+# Contributor: Johannes Löthberg <johannes at kyriasis.com>
+# Contributor: Piotr Gorski <lucjan.lucjanov at gmail.com>
+# Contributor: Lucy <lucy at luz.lu>
+# Contributor: Bartlomiej Piotrowski <nospam at bpiotrowski.pl>
+
+pkgname=pkgconf
+pkgver=1.4.2
+pkgrel=2
+pkgdesc="Package compiler and linker metadata toolkit"
+url="https://github.com/pkgconf/pkgconf"
+license=(custom:ISC)
+arch=(x86_64)
+depends=(glibc sh)
+makedepends=(git)
+provides=(pkg-config pkgconfig)
+conflicts=(pkg-config)
+replaces=(pkg-config)
+groups=(base-devel)
+_commit=f4137995d9a5f2c5647ff79961cb0c516923faa8  # tags/pkgconf-1.4.2
+source=("git+https://github.com/pkgconf/pkgconf#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:

Copied: pkgconf/repos/testing-x86_64/platform-pkg-config.in (from rev 324991, pkgconf/trunk/platform-pkg-config.in)
===================================================================
--- testing-x86_64/platform-pkg-config.in	                        (rev 0)
+++ testing-x86_64/platform-pkg-config.in	2018-05-25 22:18:17 UTC (rev 324992)
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+# Simple wrapper to tell pkgconf to behave as a platform-specific version of pkg-config
+# Platform: @TARGET_PLATFORM@
+
+: ${PKG_CONFIG_LIBDIR=@PKGCONF_LIBDIRS@}
+: ${PKG_CONFIG_SYSTEM_LIBRARY_PATH=@PKGCONF_SYSLIBDIR@} 
+: ${PKG_CONFIG_SYSTEM_INCLUDE_PATH=@PKGCONF_SYSINCDIR@}
+export PKG_CONFIG_LIBDIR PKG_CONFIG_SYSTEM_LIBRARY_PATH PKG_CONFIG_SYSTEM_INCLUDE_PATH
+
+exec pkgconf "$@"



More information about the arch-commits mailing list