summaryrefslogtreecommitdiff
path: root/community/panflute
diff options
context:
space:
mode:
Diffstat (limited to 'community/panflute')
-rw-r--r--community/panflute/PKGBUILD42
-rw-r--r--community/panflute/panflute.install17
2 files changed, 59 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
+}
diff --git a/community/panflute/panflute.install b/community/panflute/panflute.install
new file mode 100644
index 000000000..078b30c4c
--- /dev/null
+++ b/community/panflute/panflute.install
@@ -0,0 +1,17 @@
+pkgname=panflute
+
+post_install() {
+ usr/sbin/gconfpkg --install ${pkgname}
+}
+
+pre_upgrade() {
+ pre_remove $1
+}
+
+post_upgrade() {
+ post_install $1
+}
+
+pre_remove() {
+ usr/sbin/gconfpkg --uninstall ${pkgname}
+}