summaryrefslogtreecommitdiff
path: root/community/gtkhotkey/PKGBUILD
blob: f8c76bece7ae117a22d34459eda577fed1bb260b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# $Id: PKGBUILD 99799 2013-10-30 23:47:19Z allan $
# 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' 'mips64el')
url="https://launchpad.net/gtkhotkey"
license=('LGPL3')
depends=('gtk2')
makedepends=('intltool')
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
}