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

pkgname=rejoystick
pkgver=0.8.1
pkgrel=1gv
arch=i486
source=(http://downloads.sourceforge.net/project/rejoystick/rejoystick/rejoystick-$pkgver/rejoystick-$pkgver.tar.gz)
docs=("readme" "install" "copying" "changelog" "authors" "news" "todo")
url=http://rejoystick.sourceforge.net/

slackdesc=\
(
#|-----handy-ruler------------------------------------------------------|
"rejoystick (map gamepad keypresses to keyboard keypresses)"
"Rejoystick is a program that maps keypresses on your"
"gamepad/joypad/joystick to keypresses on a keyboard when you are"
"running X. Since it uses SDL to communicate with the gamepad device,"
"it can work on every platform that provides SDL and an X environment."
""
"Make sure you read file /usr/doc/$pkgname-$pkgver/README to learn how"
"to use this."
)


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