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

David Runge dvzrv at archlinux.org
Mon Apr 6 19:40:03 UTC 2020


    Date: Monday, April 6, 2020 @ 19:40:03
  Author: dvzrv
Revision: 612089

upgpkg: lib32-libsamplerate 0.1.9-3: Adding soprovides.

Rebuilding to add soprovides (libsamplerate.so). Moving lib32-libsndfile to makedepends.
Running autoreconf in prepare(). Switching to more safe checksum algorithm.
Adding note about check() (requires lib32-fftw).
Installing license file instead of symlinking across packages.

Modified:
  lib32-libsamplerate/trunk/PKGBUILD

----------+
 PKGBUILD |   41 +++++++++++++++++++++++++----------------
 1 file changed, 25 insertions(+), 16 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-04-06 19:36:15 UTC (rev 612088)
+++ PKGBUILD	2020-04-06 19:40:03 UTC (rev 612089)
@@ -1,21 +1,27 @@
 # Maintainer: Jan "heftig" Steffens <jan.steffens at gmail.com>
 
-_pkgbasename=libsamplerate
-pkgname=lib32-$_pkgbasename
+_name=libsamplerate
+pkgname=lib32-libsamplerate
 pkgver=0.1.9
-pkgrel=2
+pkgrel=3
 pkgdesc="Secret Rabbit Code - aka Sample Rate Converter for audio (32-bit)"
 arch=('x86_64')
 url="http://www.mega-nerd.com/SRC/index.html"
 license=('BSD')
-depends=('lib32-libsndfile' $_pkgbasename)
-makedepends=('gcc-multilib')
-source=(http://www.mega-nerd.com/SRC/libsamplerate-${pkgver}.tar.gz)
-sha1sums=('ed60f957a4ff87aa15cbb1f3dbd886fa7e5e9566')
-validpgpkeys=('73571E85C19F4281D8C97AA86CA41A7743B8D6C8')
+depends=('lib32-glibc' 'libsamplerate')
+makedepends=('gcc-multilib' 'lib32-libsndfile')
+# checkdepends=('fftw')
+provides=('libsamplerate.so')
+source=("http://www.mega-nerd.com/SRC/${_name}-${pkgver}.tar.gz")
+sha512sums=('78596657963cbf06785e3e6e1190b093df71da52ca340e75bd8246a962cd79dd1c90fa5527c607cebcb296e2c1ee605015278b274e3b768f2f3fbeb0eadfb728')
 
+prepare() {
+  mv -v "${_name}-${pkgver}" "${pkgname}-${pkgver}"
+  cd "${pkgname}-${pkgver}"
+  autoreconf -vfi
+}
 build() {
-  cd ${_pkgbasename}-${pkgver}
+  cd "${pkgname}-${pkgver}"
 
   export CC="gcc -m32"
   export CXX="g++ -m32"
@@ -25,12 +31,15 @@
   make
 }
 
+# # requires lib32-fftw
+# check() {
+#   cd "${pkgname}-${pkgver}"
+#   make -k check
+# }
+
 package() {
-  cd ${_pkgbasename}-${pkgver}
-  make DESTDIR=${pkgdir} install
-
-  rm -rf "${pkgdir}"/usr/{include,share,bin}
-
-  mkdir -p "$pkgdir/usr/share/licenses"
-  ln -s $_pkgbasename "$pkgdir/usr/share/licenses/$pkgname"
+  cd "${pkgname}-${pkgver}"
+  make DESTDIR="${pkgdir}" install
+  rm -rfv "${pkgdir}"/usr/{include,share,bin}
+  install -vDm 644 COPYING -t "${pkgdir}/usr/share/licenses/${pkgname}"
 }



More information about the arch-commits mailing list