[arch-commits] Commit in lib32-jack2/repos (2 files)

David Runge dvzrv at gemini.archlinux.org
Thu Jul 15 07:58:09 UTC 2021


    Date: Thursday, July 15, 2021 @ 07:58:09
  Author: dvzrv
Revision: 977181

archrelease: copy trunk to multilib-staging-x86_64

Added:
  lib32-jack2/repos/multilib-staging-x86_64/
  lib32-jack2/repos/multilib-staging-x86_64/PKGBUILD
    (from rev 977180, lib32-jack2/trunk/PKGBUILD)

----------+
 PKGBUILD |   60 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 60 insertions(+)

Copied: lib32-jack2/repos/multilib-staging-x86_64/PKGBUILD (from rev 977180, lib32-jack2/trunk/PKGBUILD)
===================================================================
--- multilib-staging-x86_64/PKGBUILD	                        (rev 0)
+++ multilib-staging-x86_64/PKGBUILD	2021-07-15 07:58:09 UTC (rev 977181)
@@ -0,0 +1,60 @@
+# Maintainer: David Runge <dvzrv at archlinux.org>
+# Contributor: speps <speps at aur dot archlinux dot org>
+
+_name=jack2
+pkgname=lib32-jack2
+pkgver=1.9.19
+pkgrel=1
+pkgdesc="The JACK low-latency audio server (32 bit)"
+arch=('x86_64')
+url="https://github.com/jackaudio/jack2"
+license=('GPL2' 'LGPL2.1')
+depends=('lib32-gcc-libs' 'lib32-glibc' 'lib32-opus' "jack2=${pkgver}")
+makedepends=('git' 'lib32-alsa-lib' 'lib32-celt' 'lib32-dbus' 'lib32-expat'
+'lib32-readline' 'lib32-libsamplerate' 'lib32-libsndfile' 'waf')
+provides=('lib32-jack' 'libjack.so')
+conflicts=('lib32-jack')
+source=("git+https://github.com/jackaudio/${_name}.git#tag=v${pkgver}?signed")
+sha512sums=('SKIP')
+validpgpkeys=('62B11043D2F6EB6672D93103CDBAA37ABC74FBA0') # falkTX <falktx at falktx.com>
+
+prepare() {
+  cd "${_name}"
+  # copying relevant custom waf scripts and loading them specifically using
+  # wscript
+  touch __init__.py
+  mkdir -vp tools
+  cp -v waflib/extras/xcode*.py tools
+  rm -rv waflib
+  sed -e "s/load('xcode'/load('xcode', tooldir='tools'/g" \
+      -e "s/load('xcode6'/load('xcode6', tooldir='tools'/g" \
+      -i wscript
+}
+
+build() {
+  cd "${_name}"
+  export LINKFLAGS="$LDFLAGS"
+  export PYTHONPATH="${PWD}:${PYTHONPATH}"
+  export CC="gcc -m32"
+  export CXX="g++ -m32"
+  export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"
+  export CXXFLAGS+=' -m32'
+  export CFLAGS+=' -m32'
+  waf configure --prefix=/usr \
+                --libdir=/usr/lib32 \
+                --classic \
+                --dbus
+  waf build
+}
+
+package() {
+  depends+=('libcelt0.so')
+  cd "${_name}"
+  export PYTHONPATH="${PWD}:${PYTHONPATH}"
+  waf install --destdir="${pkgdir}"
+  # remove all non-32bit and those provided by jack2
+  rm -rf "${pkgdir}"/usr/{bin,lib,include,share}
+  rm -rf "${pkgdir}/usr/lib32/jack/"
+  rm -rf "${pkgdir}/usr/lib32/libjack"{net,server}*
+}
+# vim:set ts=2 sw=2 et:




More information about the arch-commits mailing list