summaryrefslogtreecommitdiff
path: root/community/gtkhotkey/PKGBUILD
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2012-12-27 01:22:37 -0800
committerroot <root@rshg054.dnsready.net>2012-12-27 01:22:37 -0800
commit4b9819d98573d82cec1b07beb719390f5fa4aed1 (patch)
tree5606de36a177647ce905bc34a28b7f01806d4ff3 /community/gtkhotkey/PKGBUILD
parent93079feae1048abe4ebe1ddc66197f31e1206101 (diff)
Thu Dec 27 01:22:36 PST 2012
Diffstat (limited to 'community/gtkhotkey/PKGBUILD')
-rw-r--r--community/gtkhotkey/PKGBUILD40
1 files changed, 40 insertions, 0 deletions
diff --git a/community/gtkhotkey/PKGBUILD b/community/gtkhotkey/PKGBUILD
new file mode 100644
index 000000000..ea0b42b8d
--- /dev/null
+++ b/community/gtkhotkey/PKGBUILD
@@ -0,0 +1,40 @@
+# $Id: PKGBUILD 81675 2012-12-26 12:18:55Z fyan $
+# Maintainer: Felix Yan <felixonmars@gmail.com>
+# Contributor: kiefer <jorgelmadrid@gmail.com>
+# Contributor: Alessio Sergi <asergi at archlinux dot us>
+# Contributor: Gaute Hope <eg@gaute.vetsj.com>
+# Contributor: Marcos Heredia <chelqo@gmail.com>
+
+pkgname=gtkhotkey
+pkgver=0.2.1
+pkgrel=8
+pkgdesc="Platform independent hotkey handling for Gtk+ applications"
+arch=('i686' 'x86_64')
+url="https://launchpad.net/gtkhotkey"
+license=('LGPL3')
+depends=('gtk2')
+makedepends=('intltool')
+options=('!libtool')
+source=("http://launchpad.net/$pkgname/0.2/$pkgver/+download/$pkgname-$pkgver.tar.gz")
+md5sums=('bfdc73e68e9adbe0d506d31a25862914')
+
+build() {
+ cd "$srcdir/$pkgname-$pkgver"
+
+ # doc path fix
+ sed -i '/gtkhotkeydocdir/s/\${prefix}/\${datadir}/g' Makefile.{am,in}
+
+ # glib2 fix
+ sed -i 's|glib/gquark\.h|glib.h|' src/gtk-hotkey-error.h
+ sed -i 's|glib/gtypes\.h|glib.h|' src/x11/tomboykeybinder.h
+
+ ./configure --prefix=/usr \
+ --disable-static
+ make
+}
+
+package() {
+ cd "$srcdir/$pkgname-$pkgver"
+
+ make DESTDIR="$pkgdir/" install
+}