[arch-commits] Commit in alsa-lib/trunk (PKGBUILD)

David Runge dvzrv at archlinux.org
Sat Jan 18 16:18:03 UTC 2020


    Date: Saturday, January 18, 2020 @ 16:18:02
  Author: dvzrv
Revision: 373679

upgpkg: alsa-lib 1.2.1.2-3: Updating maintainer info. Switching to correct license (LGPL2.1). Using https sources.
Adding libasound.so and libatopology.so to provides. Running autoreconf in prepare(). Running make -k check in check(). Installing docs.

Modified:
  alsa-lib/trunk/PKGBUILD

----------+
 PKGBUILD |   29 +++++++++++++++++++++++------
 1 file changed, 23 insertions(+), 6 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-01-18 16:13:12 UTC (rev 373678)
+++ PKGBUILD	2020-01-18 16:18:02 UTC (rev 373679)
@@ -1,23 +1,40 @@
+# Maintainer: David Runge <dvzrv at archlinux.org>
 # Contributor: judd <jvinet at zeroflux.org>
 
 pkgname=alsa-lib
 pkgver=1.2.1.2
-pkgrel=2
+pkgrel=3
 pkgdesc="An alternative implementation of Linux sound support"
 arch=('x86_64')
 url="https://www.alsa-project.org"
+license=('LGPL2.1')
 depends=('glibc' 'alsa-topology-conf' 'alsa-ucm-conf')
-license=('LGPL')
-source=(ftp://ftp.alsa-project.org/pub/lib/$pkgname-$pkgver.tar.bz2)
+provides=('libasound.so' 'libatopology.so')
+source=("https://www.alsa-project.org/files/pub/lib/$pkgname-$pkgver.tar.bz2")
 sha512sums=('e8286fd55f63ee0d95513279d0885c287533de89b7af6c338413dec5d38ba4f5a15da1a4a4ce36e052614e4b730e3778782dab9979d82958283be17b48604913')
 
+prepare() {
+  cd "$pkgname-$pkgver"
+  autoreconf -vfi
+}
+
 build() {
-  cd "$srcdir/$pkgname-$pkgver"
-  ./configure --without-debug --prefix=/usr
+  cd "$pkgname-$pkgver"
+  ./configure --prefix=/usr \
+              --without-debug
   make
 }
 
+check() {
+  cd "$pkgname-$pkgver"
+  export LD_LIBRARY_PATH="${PWD}/src/.libs/:${LD_LIBRARY_PATH}"
+  make -k check
+}
+
 package() {
-  cd "$srcdir/$pkgname-$pkgver"
+  cd "$pkgname-$pkgver"
   make DESTDIR="$pkgdir" install
+  make DESTDIR="$pkgdir" install -C doc
+  install -vDm 644 {MEMORY-LEAK,TODO,NOTES,ChangeLog,doc/asoundrc.txt} \
+    -t "${pkgdir}/usr/share/doc/${pkgname}"
 }



More information about the arch-commits mailing list