### this file is sourced not run
PKGNAME=grafx2
PKGVER=2.5
PKGBUILD=1
PKGARCH=x86_64

# source: JakeSFR
TARBALL=${PKGNAME}-${PKGVER}.tar.gz
MD5SUM=80b0bc1dd66a87a62b1621b963b28fc1
SRC_URL=http://pulkomandy.tk/projects/GrafX2/downloads/30
BUNDLE=

SLACKDESC="${PKGNAME}: ${PKGNAME} ${PKGVER} (Pixelart-oriented painting program)  
${PKGNAME}:  
${PKGNAME}: GrafX2 is a bitmap paint program inspired by the Amiga programs
${PKGNAME}: ​Deluxe Paint and Brilliance. Specialized in 256-color drawing,
${PKGNAME}: it includes a very large number of tools and effects that make it
${PKGNAME}: particularly suitable for pixel art, game graphics, and generally
${PKGNAME}: any detailed graphics painted with a mouse.
${PKGNAME}: 
${PKGNAME}: http://pulkomandy.tk/projects/GrafX2
${PKGNAME}: 
${PKGNAME}: 
"

SLACKREQ='libSDL-image
libSDL-ttf
lua'

### default pkg_download
### default pkg_prepare
### default pkg_package
### build
pkg_build() {
	cd /tmp/${PKGNAME}*/src/ &&
	make ${MAKEFLAGS} prefix=/usr install &&
	install -Dm644 ../misc/unix/grafx2.1 /usr/share/man/man1/grafx2.1 &&
	pkg_build_slackdesc
}
