#Packager: Dimitris Tzemos <dijemos~at~gmail~dot~com>

pkgname=geany
pkgver=2.0
pkgrel=1dj
source=("https://download.geany.org/$pkgname-$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 GTK3 toolkit)"
"Geany is a text editor using the GTK3 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 \
		--enable-gtk3 \
		--enable-gtkdoc-header \
		--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
	#sed --in-place '/text\/html=geany.desktop/d' ~/.local/share/applications/defaults.list
} 
