#Packager: Frédéric Galusik <fredg~at~salixos~dot~org>

pkgname=girara
pkgver=0.1.3
pkgrel=2rl
#arch=noarch
source=("http://pwmt.org/projects/girara/download/$pkgname-$pkgver.tar.gz")
sourcetemplate=http://people.salixos.org/fredg/packages/$pkgname/$pkgver
docs=("readme" "license" "readme")
url=http://pwmt.org/projects/girara

slackdesc=\
(
#|-----handy-ruler------------------------------------------------------|
"girara (a user interface library)"
"girara is a library that implements a user interface that focuses on "
"simplicity and minimalism. Currently based on GTK+, a cross-platform "
"widget toolkit, it provides an interface that focuses on three main "
"components: A so-called view widget that represents the actual "
"application (e.g. a website (browser), an image (image viewer) or the "
"document (document viewer)), an input bar that is used to execute "
"commands of the application and the status bar which provides the user"
"with current information. **BUILT FOR GTK+2** "
)


build() {
	cd $startdir/src/$pkgname-$pkgver
	# fix flags
	sed 's/-fPIC/\$SLKCFLAGS/' config.mk
	# fix lib location
	make LIBDIR=/usr/lib${LIBDIRSUFFIX} || return 1
	make install LIBDIR=/usr/lib${LIBDIRSUFFIX} DESTDIR=$startdir/pkg
	
	# static libs = no
	rm $startdir/pkg/usr/lib${LIBDIRSUFFIX}/*.a
	# fix rights
	chmod 755 $PKG/usr/lib${LIBDIRSUFFIX}/libgirara-*
}