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

pkgname=isomaster
pkgver=1.3.5
pkgrel=1gv
arch=i486
source=(http://littlesvr.ca/isomaster/releases/isomaster-$pkgver.tar.bz2)
sourcetemplate=http://pnboy.pinguix.com/gapan/$arch/$pkgname
docs=("*readme*" "*install*" "*copying*" "*changelog*" "*authors*" "*news*" "*todo*" "*txt*")
url=http://www.littlesvr.ca/isomaster/

slackdesc=\
(
#|-----handy-ruler------------------------------------------------------|
"isomaster is an open-source, GUI CD image editor for Linux and BSD."
"Basically you can use this program to extract files from an ISO,"
"add files to an ISO, and create bootable ISOs"
"all in a graphical user interface"
)


build() {
	cd $startdir/src/$pkgname-$pkgver
	sed 's/\/usr\/local/\/usr/' -i Makefile
	sed 's/(ICONPATH)\/isomaster\.png/ isomaster/' -i Makefile
	mkdir -p $startdir/pkg/usr/share/icons/hicolor/16x16/apps
	mkdir -p $startdir/pkg/usr/share/icons/hicolor/48x48/apps
	convert -resize 16x16 icons/isomaster.png $startdir/pkg/usr/share/icons/hicolor/16x16/apps/isomaster.png
	convert -resize 48x48 icons/isomaster.png $startdir/pkg/usr/share/icons/hicolor/48x48/apps/isomaster.png
	make || return 1
	make install DESTDIR=$startdir/pkg
}