Date: Thursday, September 3, 2020 @ 14:02:15
  Author: dvzrv
Revision: 395386

upgpkg: ncmpc 0.39-2: Rebuild to add chat page.

Switch to correct license (GPL2).
Add all direct dependencies. Add all available sodeps in package() and the 
respective packages to makedepends.
Prefer plain meson over arch-meson for readability and visibility in build().
Update maintainer info.

Modified:
  ncmpc/trunk/PKGBUILD

----------+
 PKGBUILD |   45 +++++++++++++++++++++++++++------------------
 1 file changed, 27 insertions(+), 18 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD    2020-09-03 11:50:43 UTC (rev 395385)
+++ PKGBUILD    2020-09-03 14:02:15 UTC (rev 395386)
@@ -1,4 +1,5 @@
-# Maintainer: Gaetan Bisson <[email protected]>
+# Maintainer: David Runge <[email protected]>
+# Contributor: Gaetan Bisson <[email protected]>
 # Contributor: Angel Velasquez <[email protected]> 
 # Contributor: Andrea Scarpino <[email protected]>
 # Contributor: damir <[email protected]>
@@ -6,31 +7,39 @@
 
 pkgname=ncmpc
 pkgver=0.39
-pkgrel=1
-pkgdesc='Fully featured MPD client using ncurses'
+pkgrel=2
+pkgdesc="Fully featured MPD client which runs in a terminal"
 url='https://www.musicpd.org/clients/ncmpc/'
 arch=('x86_64')
-license=('GPL')
-depends=('ncurses' 'libmpdclient' 'pcre' 'lirc')
+license=('GPL2')
+depends=('gcc-libs' 'glibc' 'lirc' 'pcre')
+makedepends=('boost' 'libmpdclient' 'meson' 'ncurses' 'python-sphinx')
 optdepends=('ruby: for lyrics plugin')
-makedepends=('meson' 'python-sphinx' 'boost')
-validpgpkeys=('0392335A78083894A4301C43236E8A58C6DB4512')
 
source=("https://www.musicpd.org/download/${pkgname}/${pkgver%.*}/${pkgname}-${pkgver}.tar.xz"{,.sig})
-sha256sums=('64ebe320c2fbe4dfbff4461ceae730001841d06d48c4882d69f320912a0f11a8'
+sha512sums=('bfadc58bf8b66bff08608f561f689a50fd412b87975998ce23751fd312fa009eeba4b48b4afe96391b2ecb184c00c366262e9b96e24d2ce2ab2af6a4002721d9'
             'SKIP')
+b2sums=('1b270ed52aa884cecd3e1ce60bb2ed628ef79480697f388b48a09e0f22068dbbb7623b01171e5cfae9556446e404530f93c84ca3c3d5cc481c8431f37786c2f4'
+        'SKIP')
+validpgpkeys=('0392335A78083894A4301C43236E8A58C6DB4512') # Max Kellermann 
<[email protected]>
 
-prepare() {
-       cd "${srcdir}/${pkgname}-${pkgver}"
-       sed "s/curses == 'ncursesw'/false/g" -i meson.build
-}
-
 build() {
-       cd "${srcdir}/${pkgname}-${pkgver}"
-       arch-meson . build -Dlyrics_screen=true
-       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 \
+        -D lyrics_screen=true \
+        -D chat_screen=true \
+        build
+  ninja -C build
 }
 
 package() {
-       cd "${srcdir}/${pkgname}-${pkgver}"
-       DESTDIR="${pkgdir}" ninja -C build install
+  depends+=('libmpdclient.so' 'libncursesw.so')
+  cd "${pkgname}-${pkgver}"
+  DESTDIR="${pkgdir}" ninja -C build install
 }

Reply via email to