[arch-commits] Commit in xfce4-pulseaudio-plugin/trunk (PKGBUILD)

Jan de Groot jgc at archlinux.org
Tue Feb 7 22:32:09 UTC 2017


    Date: Tuesday, February 7, 2017 @ 22:32:08
  Author: jgc
Revision: 288222

upgpkg: xfce4-pulseaudio-plugin 0.2.4+8+g50c9279-1

Update to git snapshot, includes translations (FS#52884)

Modified:
  xfce4-pulseaudio-plugin/trunk/PKGBUILD

----------+
 PKGBUILD |   29 ++++++++++++++++++++---------
 1 file changed, 20 insertions(+), 9 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2017-02-07 21:57:56 UTC (rev 288221)
+++ PKGBUILD	2017-02-07 22:32:08 UTC (rev 288222)
@@ -4,8 +4,8 @@
 # Contributor: twa022 <twa022 at gmail dot com>
 
 pkgname=xfce4-pulseaudio-plugin
-pkgver=0.2.4
-pkgrel=5
+pkgver=0.2.4+8+g50c9279
+pkgrel=1
 pkgdesc="Pulseaudio plugin for Xfce4 panel"
 arch=('i686' 'x86_64')
 license=('GPL2')
@@ -12,14 +12,24 @@
 url="https://goodies.xfce.org/projects/panel-plugins/xfce4-pulseaudio-plugin"
 groups=('xfce4-goodies')
 depends=('xfce4-panel' 'libpulse' 'libkeybinder3' 'gtk-update-icon-cache' 'libnotify')
-makedepends=('intltool' 'dbus-glib')
+makedepends=('intltool' 'dbus-glib' git xfce4-dev-tools)
 optdepends=('pavucontrol: default pulseaudio mixer')
-source=(http://archive.xfce.org/src/panel-plugins/${pkgname}/${pkgver%.*}/${pkgname}-${pkgver}.tar.bz2)
-sha256sums=('8d9330ddf1d44a864a36d566cce4b76d4f859c5984bba7653d7dc39aa24d5c3e')
-sha512sums=('b53ab48e282a506fc7fe91fa70520f0db32f2f73653a0210681bf7389f13441d5af8f855604b59817b1fe7a3f41e2d4fe52b052ac0c3479f3f4e37b2afedb193')
+_commit=50c9279946715ef52ba7f4cccbdc98c06d3c3025  # master
+source=("git+https://git.xfce.org/panel-plugins/xfce4-pulseaudio-plugin/#commit=$_commit")
+sha256sums=('SKIP')
 
+pkgver() {
+  cd $pkgname
+  git describe --tags | sed 's/^xfce4-pulseaudio-plugin-//;s/-/+/g'
+}
+
+prepare() {
+  cd $pkgname
+  NOCONFIGURE=1 ./autogen.sh
+}
+
 build() {
-  cd "${pkgname}-${pkgver}"
+  cd "$pkgname"
   ./configure \
     --prefix=/usr \
     --sysconfdir=/etc \
@@ -26,7 +36,8 @@
     --libexecdir=/usr/lib \
     --localstatedir=/var \
     --enable-keybinder \
-    --enable-libnotify
+    --enable-libnotify \
+    --enable-maintainer-mode
 
   sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
 
@@ -34,6 +45,6 @@
 }
 
 package() {
-  cd "${pkgname}-${pkgver}"
+  cd "$pkgname"
   make DESTDIR="${pkgdir}" install
 }



More information about the arch-commits mailing list