[arch-commits] Commit in mpc/trunk (PKGBUILD)
David Runge
dvzrv at archlinux.org
Thu Sep 3 17:59:31 UTC 2020
Date: Thursday, September 3, 2020 @ 17:59:30
Author: dvzrv
Revision: 395401
upgpkg: mpc 0.33-3: Rebuild to remove unreproducible documentation.
Add all available sodeps in package() and the respective packages in makedepends.
Use plain meson instead of arch-meson for readability and visibility in build().
Remove the html documentation which features unreproducible components (e.g. downloaded jquery.js).
Update maintainer info.
Modified:
mpc/trunk/PKGBUILD
----------+
PKGBUILD | 45 ++++++++++++++++++++++++++++++---------------
1 file changed, 30 insertions(+), 15 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2020-09-03 17:56:09 UTC (rev 395400)
+++ PKGBUILD 2020-09-03 17:59:30 UTC (rev 395401)
@@ -1,4 +1,5 @@
-# Maintainer: Gaetan Bisson <bisson at archlinux.org>
+# Maintainer: David Runge <dvzrv at archlinux.org>
+# Contributor: Gaetan Bisson <bisson at archlinux.org>
# Contributor: Angel Velasquez <angvp at archlinux.org>
# Contributor: Andrea Scarpino <andrea at archlinux.org>
# Contributor: Alexander Fehr <pizzapunk gmail com>
@@ -6,28 +7,42 @@
pkgname=mpc
pkgver=0.33
-pkgrel=2
-pkgdesc='Minimalist command line interface to MPD'
-url='https://www.musicpd.org/clients/mpc/'
+pkgrel=3
+pkgdesc="Minimalist command line interface to MPD"
+url="https://www.musicpd.org/clients/mpc/"
license=('GPL2')
arch=('x86_64')
-makedepends=('meson' 'python-sphinx')
-depends=('libmpdclient')
-validpgpkeys=('0392335A78083894A4301C43236E8A58C6DB4512')
+depends=('glibc')
+makedepends=('libmpdclient' 'meson' 'python-sphinx')
+options=('!emptydirs')
source=("https://www.musicpd.org/download/${pkgname}/${pkgver%.*}/${pkgname}-${pkgver}.tar.xz"{,.sig})
-sha256sums=('4f40ccbe18f5095437283cfc525a97815e983cbfd3a29e48ff610fa4f1bf1296'
+sha512sums=('d3247dfb54ac3c95caf5666088968a952b33eb7e8f941bca4f3715603839cf5a1bc5300488c78fdce6e38f612b243f2252ea682b8d0fec9f230acd760bf3560c'
'SKIP')
+b2sums=('220848e088964297fbaddeedf61d5ddc90386df360a6af81b2d3753517f7ee36ff3d9462242f38b17c991996927a7d1fc253e1006253f2f875023ddb75a800c2'
+ 'SKIP')
+validpgpkeys=('0392335A78083894A4301C43236E8A58C6DB4512') # Max Kellermann <max at blarg.de>
-options=('!emptydirs')
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
- install -Dm644 contrib/mpc-completion.bash "${pkgdir}/usr/share/bash-completion/completions/mpc"
+ depends+=('libmpdclient.so')
+ cd "${pkgname}-${pkgver}"
+ DESTDIR="${pkgdir}" ninja -C build install
+ install -vDm 644 contrib/mpc-completion.bash \
+ "${pkgdir}/usr/share/bash-completion/completions/mpc"
+ # the html documentation is not reproducible and only the man page is needed
+ rm -rvf "${pkgdir}/usr/share/doc/${pkgname}/html"
}
More information about the arch-commits
mailing list