#Packager: Vasile Coman <kerd[at]slackware[dot]eu>
#Former Packager(s): Name <email@address.com>
#Anything commented out is optional and can be deleted.

pkgname=beaver 
pkgver=0.4.1
pkgrel=1vc
source=("http://freefr.dl.sourceforge.net/project/beaver-editor/0.4/$pkgname-$pkgver.tar.bz2")
sourcetemplate=http://people.salixos.org/kerd/$pkgname/$pkgver/
docs=("readme" "install" "copying" "ChangeLog" "authors" "todo")
url=http://beaver-editor.sourceforge.net/

slackdesc=\
(
#|-----handy-ruler----------------------------------------------|
"Beaver (GTK+2 editor)"
"Beaver starts up fast and doesn't use a lot of memory."
"Beaver's only dependency is GTK+2, so no need to install other"
"libraries eating your disk space. These things make Beaver"
"very suitable for old computers and use in small Linux"
"distributions."
"http://beaver-editor.sourceforge.net/"
)


build() {
	cd $startdir/src/$pkgname-$pkgver
	./configure --prefix=/usr \
  		--libdir=/usr/lib${LIBDIRSUFFIX} \
		--sysconfdir=/etc \
  		--localstatedir=/var \
  		--mandir=/usr/man \
  		--infodir=/usr/info \
  		--docdir=/usr/doc/$pkgname-$pkgver \
  		--localedir=/usr/share/locale \
  		--enable-static=no \
		--build=$arch-slackware-linux || return 1
	
	make || return 1
	make install DESTDIR=$startdir/pkg

	mkdir -p $startdir/pkg/usr/share/icons/hicolor/48x48/apps
	mkdir -p $startdir/pkg/usr/share/icons/hicolor/32x32/apps
	cp $startdir/src/$pkgname-$pkgver/data/pixmaps/icons/48x48/beaver.png $startdir/pkg/usr/share/icons/hicolor/48x48/apps
	cp $startdir/src/$pkgname-$pkgver/data/pixmaps/icons/32x32/beaver.png $startdir/pkg/usr/share/icons/hicolor/32x32/apps

	
}