#Packager: Tim Beech <tim~dot~beech~AT~gmail~dot~com>

pkgname=dwb
pkgver=2013.03.30
pkgrel=1tjb
#arch=noarch
source=("https://bitbucket.org/portix/dwb/downloads/dwb-2013.03.30.tar.gz" "dwb_config.h_patch" "ddg_patch")
sourcetemplate=http://people.salixos.org/mimosa/packages/$pkgname/$pkgver/
docs=("readme" "install" "copying" "changelog" "authors" "news" "todo")
url=http://portix.bitbucket.org/dwb/
#dotnew=()
#CFLAGS=
#CXXFLAGS=
#options=('noextract')

#doinst() {
#
#}

slackdesc=\
(
#|-----handy-ruler------------------------------------------------------|
"dwb  (a webkit browser)"
"dwb is a lightweight web browser based on the webkit web browser"
"engine and the gtk toolkit. dwb is highly customizable and can be"
"easily configured through a web interface. It intends to be mostly" 
"keyboard driven, inspired by firefox's vimperator plugin. dwb:settings"
"opens a web interface for easy configuration."
)


build() {
	patch -p0 < dwb_config.h_patch
	patch -p0 < ddg_patch
	cd $startdir/src/$pkgname-$pkgver
# fix the location of man pages
#	sed -i '/^MANDIR/s/DATAROOTDIR/PREFIX/' config.mk #from SlackBuild, appears not needed
#make -j $numjobs || return 1
	make install DESTDIR=$startdir/pkg
}