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

David Runge dvzrv at archlinux.org
Thu Sep 3 10:31:08 UTC 2020


    Date: Thursday, September 3, 2020 @ 10:31:08
  Author: dvzrv
Revision: 395166

upgpkg: libmpdclient 2.19-3: Rebuild to add provides.

Add libmpdclient.so to provides.
Prefer plain meson over arch-meson in build().
Do not use an additional cd in package() to create a symlink for license file.
Minor fixes and cleanups.
Update maintainer info.

Modified:
  libmpdclient/trunk/PKGBUILD

----------+
 PKGBUILD |   44 ++++++++++++++++++++++++++++----------------
 1 file changed, 28 insertions(+), 16 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-09-03 10:09:58 UTC (rev 395165)
+++ PKGBUILD	2020-09-03 10:31:08 UTC (rev 395166)
@@ -1,30 +1,42 @@
-# Maintainer: Gaetan Bisson <bisson at archlinux.org>
+# Maintainer: David Runge <dvzrv at archlinux.org>
+# Contributor: Gaetan Bisson <bisson at archlinux.org>
 # Contributor: Andrea Scarpino <andrea at archlinux.org>
 
 pkgname=libmpdclient
 pkgver=2.19
-pkgrel=2
-pkgdesc='Asynchronous API library for interfacing MPD in the C, C++ & Objective C languages'
-url='https://www.musicpd.org/libs/libmpdclient/'
-license=('custom:BSD')
+pkgrel=3
+pkgdesc="C library to implement a MPD client"
+url="https://www.musicpd.org/libs/libmpdclient/"
+license=('BSD')
 arch=('x86_64')
+depends=('glibc')
 makedepends=('meson')
-validpgpkeys=('0392335A78083894A4301C43236E8A58C6DB4512')
+provides=('libmpdclient.so')
 source=("https://www.musicpd.org/download/${pkgname}/${pkgver%.*}/${pkgname}-${pkgver}.tar.xz"{,.sig})
-sha256sums=('158aad4c2278ab08e76a3f2b0166c99b39fae00ee17231bd225c5a36e977a189'
+sha512sums=('5d67b95d4b615bc750641f6d5a0240122e8f59c66108838a96bd4bc5cdda8b15288ad03d0e35d92d6e562e67c600f68aad643ca541092121074952a1bc5b3590'
             'SKIP')
+b2sums=('c045c4847d43f166a3e1549654784bd994fa4156e3ecebf7c02a412b34ca150940f3c43cdc385839cd7c281bd4ed4fd1935b757d8505133d146ea955ec2d0832'
+        'SKIP')
+validpgpkeys=('0392335A78083894A4301C43236E8A58C6DB4512') # Max Kellermann <max at blarg.de>
 
 build() {
-	cd "${srcdir}/${pkgname}-${pkgver}"
-	arch-meson . build
-	ninja -C build
+  cd "${pkgname}-${pkgver}"
+  meson --prefix /usr \
+        --libexecdir lib \
+        --sbindir bin \
+        --buildtype plain \
+        --auto-features enabled \
+        --wrap-mode nodownload \
+        -D b_lto=true \
+        -D b_pie=true \
+        build
+  ninja -C build
 }
 
 package() {
-	cd "${srcdir}/${pkgname}-${pkgver}"
-	DESTDIR="${pkgdir}" ninja -C build install
-
-	cd "${pkgdir}"
-	install -d usr/share/licenses/libmpdclient
-	ln -s ../../doc/libmpdclient/COPYING usr/share/licenses/libmpdclient/COPYING
+  cd "${pkgname}-${pkgver}"
+  DESTDIR="${pkgdir}" ninja -C build install
+  install -vdm 755 "${pkgdir}/usr/share/licenses/${pkgname}"
+  ln -sv "/usr/share/doc/${pkgname}/COPYING" \
+    "${pkgdir}/usr/share/licenses/${pkgname}/COPYING"
 }



More information about the arch-commits mailing list