updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / gtkdatabox-patched / PKGBUILD
blob3d6d0ee21a4ebfdda47946777d6dbbeb2e27286a
1 pkgname=gtkdatabox-patched
2 pkgver=0.9.1.1
3 pkgrel=1
4 pkgdesc="GtkDatabox is a widget for live display of large amounts of fluctuating numerical data."
5 url="http://sourceforge.net/projects/gtkdatabox/"
6 license="GPL"
7 arch=('i686' 'x86_64')
8 depends=()
9 basename=(gtkdatabox-$pkgver)
10 source=(http://netcologne.dl.sourceforge.net/project/gtkdatabox/gtkdatabox/$pkgver/$basename.tar.gz)
11 md5sums=('910921da2198ebd02ea8a7eb622916ce')
13 build() {
14         cd $startdir/src/$basename
15         git clone git://pkgs.fedoraproject.org/gtkdatabox.git fedora-patch || return 1
16         patch -p1 < fedora-patch/gtkdatabox-$pkgver-gtk-2.22.patch || return 1
17         sed -e 's:GTK_WIDGET_REALIZED:gtk_widget_get_realized:g' -e 's:GTK_WIDGET_STATE:gtk_widget_get_state:g' -e 's:GTK_WIDGET_VISIBLE:gtk_widget_get_visible:g' -e 's:GTK_WIDGET_DRAWABLE:gtk_widget_is_drawable:g' -i gtk/gtkdatabox_ruler.c gtk/gtkdatabox.c gtk/gtkdatabox_ruler.c || return 1
18         ./configure --prefix=/usr
19         make || return 1
20         make DESTDIR=$startdir/pkg install