#Packager: George Vlahavas <vlahavas~at~gmail~dot~com>

pkgname=geany
pkgver=2.0
pkgrel=1gv
source=(http://download.geany.org/geany-$pkgver.tar.bz2)
docs=("readme*" "install" "copying" "changelog*" "authors" "news" "todo" "hacking")
url=http://www.geany.org/

slackdesc=\
(
#|-----handy-ruler------------------------------------------------------|
"geany (The Flyweight IDE)"
"Geany is a text editor using the GTK toolkit with basic features of"
"an integrated development environment. It was developed to provide a"
"small and fast IDE, which has only a few dependencies from other"
"packages. It supports many filetypes and has some nice features."
)


build() {
	cd $startdir/src/$pkgname-$pkgver
	./configure --prefix=/usr \
		--libdir=/usr/lib${LIBDIRSUFFIX} \
		--localstatedir=/var \
		--docdir=/usr/doc/$pkgname-$pkgver \
		--sysconfdir=/etc \
		--build=$arch-slackware-linux
	make -j $numjobs || return 1
	make install DESTDIR=$startdir/pkg

	# Add syntax highlighting for SLKBUILD files
	sed -i "s/^Sh=\(.*\)/Sh=\1SLKBUILD;/" $startdir/pkg/usr/share/geany/filetype_extensions.conf
}