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

pkgname=geany
pkgver=1.22
pkgrel=1rl
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 (A text editor using the GTK2 toolkit)"
"Geany is a text editor using the GTK2 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 || 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
}