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

pkgname=enigma
pkgver=r1830
pkgrel=2gv
source=(enigma-r1830.tar.gz)
url=http://www.nongnu.org/enigma/
options=('nosrcpack')

slackdesc=\
(
#|-----handy-ruler------------------------------------------------------|
"Enigma (a puzzle game inspired by Oxyd on the Atari ST)"
"Enigma is a puzzle game inspired by Oxyd on the Atari ST and"
"Rock'n'Roll on the Amiga. The object of the game is to find and"
"uncover pairs of identically colored Oxyd stones. Simple? Yes."
"Easy? Certainly not! Hidden traps, vast mazes, laser beams, and, most"
"of all, countless hairy puzzles usually block your direct way to the"
"Oxyd stones..."
)


build() {
	cd $startdir/src/$pkgname-$pkgver
	./configure --prefix=/usr --libdir=/usr/lib${LIBDIRSUFFIX} --localstatedir=/var --sysconfdir=/etc --build=$arch-slackware-linux
	make || return 1
	make install DESTDIR=$startdir/pkg

	mkdir -p $startdir/pkg/usr/doc/$pkgname-$pkgver
	mv $startdir/pkg/usr/share/doc/enigma/* $startdir/pkg/usr/doc/$pkgname-$pkgver
	rm -rf $startdir/pkg/usr/share/doc

	# enet is a separate package, why put it in here too? /usr/lib and
	# /usr/include directories only have enet files
	rm -rf $startdir/pkg/usr/include
	rm -rf $startdir/pkg/usr/lib${LIBDIRSUFFIX}
}