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

pkgname=osmose
pkgver=0.9.1
pkgrel=1gv
arch=x86_64
source=("http://bcz.emu-france.com/osmose/Osmose-0-9-1-src.zip")
url=http://bcz.emu-france.com/

slackdesc=\
(
#|-----handy-ruler------------------------------------------------------|
"osmose (Sega Master System and Game Gear Emulator)"
"Osmose is an Object oriented Sega Master System and Game Gear"
"emulator. It is based on SDL and the Zlib library and released under"
"the GPL."
)


build() {
	cd $startdir/src/Osmose-0-9-1
	sed -i "s/-O3/$CFLAGS/" Makefile
	make || return 1
	install -d -m 755 $startdir/pkg/usr/bin
	install -m 755 osmose $startdir/pkg/usr/bin/
	install -d -m 755 $startdir/pkg/usr/doc/$pkgname-$pkgver
	install -m 644 *.txt $startdir/pkg/usr/doc/$pkgname-$pkgver/
}