#Maintainer: George Vlahavas <vlahavas~at~gmail~dot~com>

pkgname=bashburn
pkgver=3.0.1
pkgrel=1gv
arch=noarch
source=("BashBurn-$pkgver.tar.gz")
url=http://bashburn.dose.se/
options=('nosrcpack')

slackdesc=\
(
#|-----handy-ruler------------------------------------------------------|
"BashBurn (burn CD/DVD discs using the console)"
"BashBurn (Previously Magma) is a bash script designed to make CD/DVD"
"burning in the console easier. It supports burning of normal data CDs"
"and audio CDs, blanking of CD-RWs, multisession, data DVDs, and more."
)


build() {
	cd $startdir/src/$pkgver
	sed -i "s/Bashburn/BashBurn/g" Install.sh
	./Install.sh --prefix=$startdir/pkg/usr/
	unlink $startdir/pkg/usr/bin/bashburn
	sed -i "s|BBROOTDIR=.*|BBROOTDIR=/usr/lib/BashBurn/lib|" $startdir/pkg/usr/lib/BashBurn/lib/BashBurn.sh
	(
	cd $startdir/pkg/usr/bin
	ln -s ../lib/BashBurn/lib/BashBurn.sh bashburn
	)
	mkdir -p $startdir/pkg/usr/doc/$pkgname-$pkgver
	cp $startdir/src/$pkgver/docs/* $startdir/pkg/usr/doc/$pkgname-$pkgver
	mkdir -p $startdir/pkg/usr/man/man1
	cp $startdir/src/$pkgver/bashburn_man/bashburn.1 $startdir/pkg/usr/man/man1/
}