updated on Thu Jan 19 12:17:07 UTC 2012
[aur-mirror.git] / lock-keys-applet / PKGBUILD
blob86fa34585b0a3007725e528b0bec644887e203e0
1 # Contributor: Claudio Riva <firetux83@gmail.com>
3 pkgname=lock-keys-applet
4 pkgver=1.0
5 pkgrel=6
6 pkgdesc="Lock keys applet is a gnome2 applet, that shows the status of the CAPS-, NUM- and SCROLL-Lock keys of your keyboard."
7 url="http://www.wh-hms.uni-ulm.de/~mfcn/lock-keys-applet/"
8 arch=('i686' 'x86_64')
9 license=('GPL')
10 depends=('gnome-panel-bonobo')
11 makedepends=('intltool' 'gnome-doc-utils')
12 #source=(http://www.wh-hms.uni-ulm.de/~mfcn/shared/lock-keys/$pkgname-$pkgver.tar.gz)
13 source=(${pkgname}-${pkgver}.tar.gz)
14 md5sums=('8dc772d62f0881c8978513d7e69de3db')
16 build() {
17    cd $startdir/src/$pkgname-$pkgver
18    #GtkTooltips deprecated in gtk 2.12, it's been replaced with GtkTooltip
19    sed -i 's|GtkTooltips |GtkTooltip |g' src/lock-keys-applet.c
20    sed -i 's|gtk_tooltips_set_tip;|gtk_tooltip_set_text|g' src/lock-keys-applet.c
21    #GTK_SIGNAL_FUNC deprecated in gtk 2.14 it's been replace with G_CALLBACK
22    sed -i 's|GTK_SIGNAL_FUNC|G_CALLBACK|g' src/lock-keys-applet.c
23    ./configure --prefix=`pkg-config libpanelapplet-2.0 --variable=prefix`
24    make || return 1
25    make DESTDIR=$startdir/pkg install