[arch-commits] Commit in lib32-portaudio/trunk (PKGBUILD)

David Runge dvzrv at archlinux.org
Mon Apr 6 21:38:13 UTC 2020


    Date: Monday, April 6, 2020 @ 21:38:12
  Author: dvzrv
Revision: 612153

upgpkg: lib32-portaudio 1:19.6.0-4: Adding soprovides.

Introducing an epoch to provide the same version as portaudio again.
Upstream versioning is very bizarre sadly.
Installing docs and license properly instead of symlinking.
Moving lib32-{alsa-lib,jack} to makedepends and adding their respective sodeps in package().
Adding libportaudio.so to provides(). The libportaudiocpp.so doesn't build on lib32.
Switching to correct license specifier (MIT).

Modified:
  lib32-portaudio/trunk/PKGBUILD

----------+
 PKGBUILD |   47 ++++++++++++++++++++++++++---------------------
 1 file changed, 26 insertions(+), 21 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-04-06 21:37:29 UTC (rev 612152)
+++ PKGBUILD	2020-04-06 21:38:12 UTC (rev 612153)
@@ -1,44 +1,49 @@
 # Maintainer: Maxime Gauduin <alucryd at gmail.com>
+# Contributor: David Runge <dvzrv at archlinux.org>
 # Contributor: josephgbr <rafael.f.f1 at gmail.com>
 # Contributor: Xavius <xavierelf at gmail.com>
 
+_name=portaudio
 pkgname=lib32-portaudio
-pkgver=190600_20161030
-pkgrel=2
+# versioning is very bizarre:
+# https://app.assembla.com/wiki/show/portaudio/ReleaseNotes
+_version=190600_20161030
+pkgver=19.6.0
+pkgrel=4
+epoch=1
 pkgdesc='A free, cross-platform, open source, audio I/O library. (32 bit)'
 arch=('x86_64')
 url="http://www.portaudio.com/"
-license=('custom')
-depends=('lib32-alsa-lib' 'lib32-jack' "${pkgname#*-}")
-makedepends=('gcc-multilib')
-source=("http://www.portaudio.com/archives/pa_stable_v${pkgver}.tgz")
+license=('MIT')
+depends=('lib32-glibc' 'portaudio')
+makedepends=('gcc-multilib' 'lib32-alsa-lib' 'lib32-jack')
+provides=('libportaudio.so')
+source=("${pkgname}-${pkgver}.tgz::http://www.portaudio.com/archives/pa_stable_v${_version}.tgz")
 sha256sums=('f5a21d7dcd6ee84397446fa1fa1a0675bb2e8a4a6dceb4305a8404698d8d1513')
 
+prepare() {
+  mv -v "${_name}" "${pkgname}-${pkgver}"
+  cd "${pkgname}-${pkgver}"
+  autoreconf -vfi
+}
+
 build() {
-  cd "${srcdir}"/${pkgname#*-}
-
-# Multilib
+  cd "${pkgname}-${pkgver}"
   export CC="gcc -m32"
   export CXX="g++ -m32"
   export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"
-
-# Build
-  ./configure --prefix=/usr --libdir=/usr/lib32
+  ./configure --prefix=/usr \
+              --libdir=/usr/lib32
   make
 }
 
 package () {
-  cd "${srcdir}"/${pkgname#*-}
-
-# Install
+  depends+=('libasound.so' 'libjack.so')
+  cd "${pkgname}-${pkgver}"
   make DESTDIR="${pkgdir}" install
-
-# Multilib
   rm -rf "${pkgdir}"/usr/include
-
-# License
-  install -dm 755 "${pkgdir}"/usr/share/licenses
-  ln -s ${pkgname#*-} "${pkgdir}"/usr/share/licenses/${pkgname}
+  install -vDm 644 LICENSE.txt -t "${pkgdir}/usr/share/licenses/${pkgname}"
+  install -vDm 644 README.txt -t "${pkgdir}/usr/share/doc/${pkgname}"
 }
 
 # vim: ts=2 sw=2 et:



More information about the arch-commits mailing list