#Packager: Tim Beech <tim ~dot~beech~at~gmail~dot~com>
#Former Packager(s): George Vlahavas <vlahavas~at~gmail~dot~com>

pkgname=giblib
pkgver=1.2.4
pkgrel=1rl
#arch=noarch
source=(http://linuxbrit.co.uk/downloads/$pkgname-$pkgver.tar.gz)
sourcetemplate=http://people.salixos.org/mimosa/packages/$pkgname/$pkgver/
#docs=("readme" "install" "copying" "changelog" "authors" "news" "todo")
url=http://www.linuxbrit.co.uk/software/
#dotnew=()
#CFLAGS=
#CXXFLAGS=
#options=('noextract')

#doinst() {
#
#}


slackdesc=\
(
#|-----handy-ruler------------------------------------------------------|
"giblib (a simple library which wraps imlib2)"
"giblib provides a wrapper to imlib2's context API, avoiding all the"
"context_get/set calls, adds fontstyles to the truetype renderer and"
"supplies a generic doubly-linked list and some string functions."
)


build() {
        cd $startdir/src/$pkgname-$pkgver
        ./configure --prefix=/usr --libdir=/usr/lib${LIBDIRSUFFIX} --localstatedir=/var --sysconfdir=/etc --disable-static
        make || return 1
        make install DESTDIR=$startdir/pkg
        mv $startdir/pkg/usr/doc/$pkgname $startdir/pkg/usr/doc/$pkgname-$pkgver 
}