#Maintainer: George Vlahavas (vlahavas~at~gmail~dot~com)

pkgname=mtpaint
pkgver=3.31
pkgrel=1gv
arch=i486
source=("http://downloads.sourceforge.net/mtpaint/mtpaint-$pkgver.tar.bz2")
docs=("readme" "install" "copying" "changelog" "authors" "news" "todo" "maintainers")
url=http://mtpaint.sourceforge.net/

slackdesc=\
(
#|-----handy-ruler------------------------------------------------------|
"mtPaint (a simple painting program)"
"mtPaint is a painting program which Mark Tyler developed from scratch"
"so he could easily create pixel art and manipulate digital photos. It"
"uses the GTK+ toolkit (version 1 or 2) and runs on PC's via the"
"GNU/Linux or Windows operating systems. Due to its efficient design"
"it can run on older PC hardware (e.g. a 200MHz CPU and 32MB of RAM)."
)


build() {
	cd $startdir/src/$pkgname-$pkgver
	./configure gtk2 cflags intl man --prefix=/usr --libdir=/usr/lib${LIBDIRSUFFIX}
	make || return 1
	make install DESTDIR=$startdir/pkg

	mkdir -p $startdir/pkg/usr/share/icons/hicolor/48x48/apps
	(
	cd $startdir/pkg/usr/share/icons/hicolor/48x48/apps
	ln -s ../../../../pixmaps/mtpaint.png mtpaint.png
	)
}