updated on Tue Jan 10 04:01:21 UTC 2012
[aur-mirror.git] / gtk-server / PKGBUILD
blobe7ad8da097d1e370186ae01680e3de39aaeecf13
1 # Original contributor: Alexander Fehr <pizzapunk gmail com>
2 # ---
3 # Latest maintainer: Neil Santos <nsantos+aur@gmail.com>
5 pkgname=gtk-server
6 pkgver=2.3.1
7 pkgrel=4
8 pkgdesc='Stream-oriented interface to the GTK+ libraries'
9 arch=('i686' 'x86_64')
10 url="http://www.gtk-server.org/"
11 license=('GPL')
12 depends=('gtk2>=2.14' 'libffi')
13 makedepends=('pkgconfig' 'glade')
14 backup=('etc/gtk-server.cfg')
15 source=("http://downloads.sourceforge.net/gtk-server/gtk-server-$pkgver-sr.tar.gz"
16         'http://www.gtk-server.org/gtk-server.cfg')
17 md5sums=('fd5cc04fb6cce5312b119f5b0c6b4ae6'
18          '4a72419de37a1cd4ac42055cd2dce801')
20 build() {
21   cd "$srcdir/gtk-server-$pkgver-sr"
22   cp "$srcdir/gtk-server.cfg" "$srcdir/gtk-server-$pkgver-sr/"
24   export CPPFLAGS=`pkg-config --cflags libffi`
25   export LDFLAGS=`pkg-config --libs libglade-2.0`
27   ./configure --prefix=/usr --sysconfdir=/etc --with-gtk2 || return 1
28   make || return 1
29   make prefix=$startdir/pkg/usr SYSCONFIG=$startdir/pkg/etc install || return 1
31   ./configure --prefix=/usr --sysconfdir=/etc --enable-library --with-gtk2 || return 1
32   make || return 1
33   install -D -m755 libgtk-server.so "$pkgdir/usr/lib/libgtk-server.so" || return 1
34   install -m644 libgtk-server.a "$pkgdir/usr/lib" || return 1