summaryrefslogtreecommitdiff
path: root/community/libdesktop-agnostic/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/libdesktop-agnostic/PKGBUILD
Tue Apr 5 14:26:38 UTC 2011
Diffstat (limited to 'community/libdesktop-agnostic/PKGBUILD')
-rw-r--r--community/libdesktop-agnostic/PKGBUILD44
1 files changed, 44 insertions, 0 deletions
diff --git a/community/libdesktop-agnostic/PKGBUILD b/community/libdesktop-agnostic/PKGBUILD
new file mode 100644
index 000000000..3c0072045
--- /dev/null
+++ b/community/libdesktop-agnostic/PKGBUILD
@@ -0,0 +1,44 @@
+# Maintainer: Jan "heftig" Steffens <jan.steffens@gmail.com>
+# Contributor: Daniel J Griffiths <ghost1227@archlinux.us>
+
+pkgname=libdesktop-agnostic
+pkgver=0.3.92
+pkgrel=1
+pkgdesc="Provides an extensible config API, a unified virtual fs API, and a desktop item editor for GLib-based projects."
+arch=('i686' 'x86_64')
+url="https://launchpad.net/libdesktop-agnostic"
+license=('GPL' 'LGPL')
+depends=('glib2' 'gtk2' 'pygtk' 'pygobject')
+makedepends=('gobject-introspection' 'vala>=0.8.1' 'intltool'
+ 'gconf')
+optdepends=('gconf: gconf configuration backend')
+options=('!libtool')
+backup=(etc/xdg/libdesktop-agnostic/desktop-agnostic.ini)
+source=(https://launchpad.net/$pkgname/0.4/$pkgver/+download/$pkgname-$pkgver.tar.gz
+ gir.patch)
+md5sums=('42374d226a21d57637f97173f6b105a1'
+ '346e06ae914ec0c12e5f1fa1c4796575')
+
+build() {
+ cd "$srcdir/$pkgname-$pkgver"
+
+ # Force source regeneration
+ rm -r gen_src
+
+ # fix for python 2.7
+ sed -i '1s|^#!.*python$|&2|' waf
+ export PYTHON=/usr/bin/python2
+
+ # fix to enable introspection
+ patch -Np1 -i "$srcdir/gir.patch"
+
+ ./waf configure --config-backends=gconf,keyfile --vfs-backends=gio \
+ --desktop-entry-backends=gio,glib --prefix=/usr --sysconfdir=/etc
+ ./waf
+}
+
+package() {
+ cd "$srcdir/$pkgname-$pkgver"
+
+ ./waf install --destdir="$pkgdir" --sysconfdir="$pkgdir/etc"
+}