summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOmar Vega Ramos <ovruni@gnu.org.pe>2013-03-20 10:27:37 -0500
committerOmar Vega Ramos <ovruni@gnu.org.pe>2013-03-20 10:27:37 -0500
commitb12a78eb94707e8c026051243bbafded96c7c103 (patch)
treec8dcc8f520a8395db1db86f9df6fb7ce7807f072
parent4a9e8bf99c82c3a601cbee219eb14487f085975b (diff)
Add gmpc
-rw-r--r--community/gmpc/PKGBUILD30
-rw-r--r--community/gmpc/gmpc.install11
2 files changed, 41 insertions, 0 deletions
diff --git a/community/gmpc/PKGBUILD b/community/gmpc/PKGBUILD
new file mode 100644
index 000000000..bea9562cc
--- /dev/null
+++ b/community/gmpc/PKGBUILD
@@ -0,0 +1,30 @@
+# $Id$
+# Contributor: Andrea Scarpino <andrea@archlinux.org>
+# Contributor: Tobias Kieslich <tobias@archlinux.org>
+
+pkgname=gmpc
+pkgver=11.8.16
+pkgrel=1
+pkgdesc="A GTK2 client for MPD"
+arch=('i686' 'x86_64' 'mips64el')
+url="http://gmpclient.org/home"
+license=('GPL')
+depends=('libunique' 'libmpd' 'libsoup' 'sqlite' 'hicolor-icon-theme' 'xdg-utils')
+makedepends=('gob2' 'intltool' 'vala')
+options=('!libtool')
+install=gmpc.install
+source=(http://download.sarine.nl/Programs/${pkgname}/${pkgver%.*}/${pkgname}-${pkgver}.tar.gz)
+md5sums=('223aeb000e41697d8fdf54ccedee89d5')
+
+build() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ sed -i 's|GNOME;AudioVideo;|GTK;AudioVideo;Player;|' data/gmpc.desktop.in
+ export LDFLAGS="$LDFLAGS -lm"
+ ./configure --prefix=/usr
+ make
+}
+
+package() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ make DESTDIR="${pkgdir}" install
+}
diff --git a/community/gmpc/gmpc.install b/community/gmpc/gmpc.install
new file mode 100644
index 000000000..e70c054ec
--- /dev/null
+++ b/community/gmpc/gmpc.install
@@ -0,0 +1,11 @@
+post_install() {
+ xdg-icon-resource forceupdate --theme hicolor &> /dev/null
+}
+
+post_upgrade() {
+ post_install
+}
+
+post_remove() {
+ post_install
+}