Date: Sunday, May 23, 2021 @ 16:25:47
  Author: bgyorgy
Revision: 943488

upgpkg: pragha 1.3.4-3: Adopt the package, enable more plugins

Modified:
  pragha/trunk/PKGBUILD

----------+
 PKGBUILD |   59 ++++++++++++++++++++++++++++++++---------------------------
 1 file changed, 32 insertions(+), 27 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD    2021-05-23 16:21:25 UTC (rev 943487)
+++ PKGBUILD    2021-05-23 16:25:47 UTC (rev 943488)
@@ -1,4 +1,5 @@
-# Maintainer: Konstantin Gizdov <a...@kge.pw>
+# Maintainer: Balló György <ballogyor+arch at gmail dot com>
+# Contributor: Konstantin Gizdov <a...@kge.pw>
 # Contributor: Alad Wenter <a...@archlinux.org>
 # Contributor: Thorsten Töpper <atsutane...@freethoughts.de>
 # Contributor: J0k3r <moebius282 e4a t gmail D0_T com>
@@ -7,39 +8,43 @@
 
 pkgname=pragha
 pkgver=1.3.4
-pkgrel=2
-pkgdesc="A lightweight GTK+ music manager - fork of Consonance Music Manager."
+pkgrel=3
+pkgdesc='Lightweight GTK music player and manager'
 arch=('x86_64')
-url="https://pragha-music-player.github.io/";
+url='https://pragha-music-player.github.io/'
 license=('GPL3')
-depends=('libnotify' 'libcdio-paranoia' 'libclastfm' 'gst-plugins-base'
-         'taglib' 'hicolor-icon-theme' 'dbus-glib' 'desktop-file-utils'
-         'libpeas' 'libgudev' 'glyr')
-optdepends=('gst-plugins-good: A collection of gstreamer codecs'
-            'gst-plugins-bad: A collection of gstreamer codecs'
-            'gst-plugins-ugly: A collection of gstreamer codecs')
-makedepends=('intltool' 'xfce4-dev-tools' 'gobject-introspection')
+depends=('gst-plugins-base' 'gst-plugins-good' 'gtk3' 'libpeas' 'taglib' 
'totem-pl-parser')
+optdepends=('glyr: Get Artist info, Lyrics and Album arts plugin'
+            'grilo: DLNA Renderer plugin'
+            'gst-libav: Extra media codecs'
+            'gst-plugins-bad: Extra media codecs'
+            'gst-plugins-ugly: Extra media codecs'
+            'libcdio-paranoia: Play cdrom plugin'
+            'libclastfm: Last.fm plugin'
+            'libkeybinder3: Global Hotkeys plugin'
+            'libmtp: MTP Devices plugin'
+            'libnotify: Notification plugin'
+            'rygel: DLNA Server plugin')
+makedepends=('intltool' 'glyr' 'grilo' 'gobject-introspection' 
'libcdio-paranoia' 'libclastfm'
+             'libkeybinder3' 'libmtp' 'libnotify' 'rygel')
 replaces=('dissonance')
-source=("$pkgname-$pkgver.tar.gz::https://github.com/pragha-music-player/pragha/archive/v$pkgver.tar.gz";)
-sha256sums=('8be35959f526d079cc19221653cb691fb66251e6819f994062e0b02e08b1809b')
+source=("https://github.com/pragha-music-player/$pkgname/releases/download/v$pkgver/$pkgname-$pkgver.tar.bz2";)
+sha256sums=('e54e6acdc11e6f19c691c6e069fa9d54934c37b0f4b78cd5e835ce9512866ba6')
 
+prepare() {
+  cd $pkgname-$pkgver
+  sed -i 's|(datadir)/appdata|(datadir)/metainfo|' data/Makefile.{am,in}
+}
+
 build() {
-  cd "${srcdir}/${pkgname}-${pkgver}"
-  ./autogen.sh
-
-  CPPFLAGS="${CPPFLAGS} -DHAVE_PARANOIA_NEW_INCLUDES" \
-  LIBS="${LIBS} -ldbus-glib-1" \
-    ./configure --prefix=/usr
+  cd $pkgname-$pkgver
+  CFLAGS="$CFLAGS -I/usr/include/gupnp-1.2 -I/usr/include/gssdp-1.2 
-I/usr/include/libsoup-2.4"
+  ./configure --prefix=/usr
+  sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
   make
 }
 
 package() {
-  cd "${srcdir}/${pkgname}-${pkgver}"
-  make DESTDIR="${pkgdir}/" install
-
-  install -m 644 "data/${pkgname}.desktop" "${pkgdir}/usr/share/applications"
-  install -d "${pkgdir}/usr/share/pixmaps"
-  install -m 644 "data/${pkgname}.1" "${pkgdir}/usr/share/man/man1/"
+  cd $pkgname-$pkgver
+  make DESTDIR="$pkgdir" install
 }
-
-# vim:ts=2:sw=2:expandtab

Reply via email to