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

pkgname=pcsxr
pkgver=1.9.92
pkgrel=1gv
source=(pcsxr-$pkgver.tar.bz2)
docs=("readme" "install" "copying" "changelog" "authors" "news" "todo" "about-nls")
url=http://pcsxr.codeplex.com/
options=('nosrcpack')

slackdesc=\
(
#|-----handy-ruler------------------------------------------------------|
"pcsxr (a PlayStation emulator)"
"PCSX-Reloaded is a PlayStation Emulator based on PCSX-df Project, with"
"support for both Windows and GNU/Linux as well as many bugfixes and"
"improvements."
)


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

	mkdir -p $startdir/pkg/usr/share/icons/hicolor/128x128/apps
	(
	cd $startdir/pkg/usr/share/icons/hicolor/128x128/apps/
	ln -sf ../../../../pixmaps/pcsx-icon.png pcsx-icon.png
	)
}