summaryrefslogtreecommitdiff
path: root/community/gmpc
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2013-08-13 01:33:19 -0700
committerroot <root@rshg054.dnsready.net>2013-08-13 01:33:19 -0700
commit7a65a910b77ad191d69881098c47f9b0c852d92e (patch)
tree9564e611af1442f8952a8cbddb3b0ad25ed71aab /community/gmpc
parent60da6abff6c9577a783d72865f11de7a585e912e (diff)
Tue Aug 13 01:31:08 PDT 2013
Diffstat (limited to 'community/gmpc')
-rw-r--r--community/gmpc/PKGBUILD39
-rw-r--r--community/gmpc/gmpc.install11
2 files changed, 50 insertions, 0 deletions
diff --git a/community/gmpc/PKGBUILD b/community/gmpc/PKGBUILD
new file mode 100644
index 000000000..5360b20c2
--- /dev/null
+++ b/community/gmpc/PKGBUILD
@@ -0,0 +1,39 @@
+# $Id: PKGBUILD 94825 2013-07-30 21:19:19Z arodseth $
+# Maintainer: Alexander Rødseth <rodseth@gmail.com>
+# Contributor: Andrea Scarpino <andrea@archlinux.org>
+# Contributor: Tobias Kieslich <tobias@archlinux.org>
+
+pkgname=gmpc
+pkgver=11.8.16
+pkgrel=2
+pkgdesc='MPD client (Gtk2)'
+arch=('x86_64' 'i686')
+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")
+sha256sums=('a69414f35396846733632ca9619921d7acda537ffd6d49bd84b444945cb76b2c')
+
+prepare() {
+ cd "$srcdir/$pkgname-$pkgver"
+
+ sed -i 's/GNOME;AudioVideo;/GTK;AudioVideo;Player;/' data/gmpc.desktop.in
+}
+
+build() {
+ cd "$srcdir/$pkgname-$pkgver"
+
+ ./configure --prefix=/usr
+ make CFLAGS+='-lm'
+}
+
+package() {
+ cd "$srcdir/$pkgname-$pkgver"
+
+ make DESTDIR="$pkgdir" install
+}
+
+# vim:set ts=2 sw=2 et:
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
+}