summaryrefslogtreecommitdiff
path: root/community/panflute/PKGBUILD
diff options
context:
space:
mode:
authorParabola <dev@list.parabolagnulinux.org>2011-04-05 14:26:38 +0000
committerParabola <dev@list.parabolagnulinux.org>2011-04-05 14:26:38 +0000
commit415856bdd4f48ab4f2732996f0bae58595092bbe (patch)
treeede2018b591f6dfb477fe9341ba17b9bc000fab9 /community/panflute/PKGBUILD
Tue Apr 5 14:26:38 UTC 2011
Diffstat (limited to 'community/panflute/PKGBUILD')
-rw-r--r--community/panflute/PKGBUILD42
1 files changed, 42 insertions, 0 deletions
diff --git a/community/panflute/PKGBUILD b/community/panflute/PKGBUILD
new file mode 100644
index 000000000..22991b45c
--- /dev/null
+++ b/community/panflute/PKGBUILD
@@ -0,0 +1,42 @@
+# $Id: PKGBUILD 31469 2010-10-31 21:20:40Z ibiru $
+# Maintainer : Ionut Biru <ibiru@archlinux.org>
+# Contributor: Owain Sutton <owainsutton @ gmail dot com>
+
+pkgname=panflute
+pkgver=0.7.0
+pkgrel=1
+pkgdesc="Music player interface and panel applet - successor to music-applet"
+arch=('i686' 'x86_64')
+url="https://launchpad.net/panflute"
+license=('GPL')
+depends=('dbus-python' 'gnome-python' 'python-notify' 'pygtk' 'python-numpy' 'python-gnomeapplet')
+makedepends=('perlxml' 'gnome-doc-utils>=0.18' 'intltool' 'gnome-python-desktop' 'python-mpd')
+optdepends=('python-mpd: for mpd support')
+install=panflute.install
+source=(http://launchpad.net/${pkgname}/0.7/${pkgver}/+download/${pkgname}-${pkgver}.tar.gz)
+md5sums=('3499e5e7beb9ee737898a7f1ccff9cb2')
+
+build() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ ./configure --prefix=/usr \
+ --sysconfdir=/etc \
+ --localstatedir=/var \
+ --libexecdir=/usr/lib/panflute \
+ --disable-schemas-install
+
+ make
+ make DESTDIR="${pkgdir}" install
+
+ sed -i "s|#![ ]*/usr/bin/env python$|#!/usr/bin/env python2|" \
+ $(find ${pkgdir}/usr/lib/python2.7/site-packages/panflute/ -name '*.py') \
+ ${pkgdir}/usr/lib/panflute/panflute-applet \
+ ${pkgdir}/usr/bin/panflute-{daemon,launch-player} \
+ ${pkgdir}/usr/bin/panflute-debugger \
+ ${pkgdir}/usr/bin/panflute-tests
+
+ install -m755 -d "${pkgdir}"/usr/share/gconf/schemas
+ gconf-merge-schema "${pkgdir}"/usr/share/gconf/schemas/${pkgname}.schemas --domain ${pkgname} \
+ "${pkgdir}"/etc/gconf/schemas/*.schemas
+
+ rm -rf "${pkgdir}"/etc/gconf
+}