rendered paste bodypkgname=epsxe
pkgver=1.6.0
pkgrel=1
pkgdesc="A freeware Playstation emulator"
url="http://www.epsxe.com/"
depends=('unzip' 'gtk')
source=(http://www.epsxe.com/files/epsxe160lin.zip http://www.pbernert.com/gpupetexgl208.tar.gz http://www.pbernert.com/gpupeopssoftx117.tar.gz http://www.pbernert.com/spupeopsoss109.tar.gz http://www.pbernert.com/gpupetemesagl176.tar.gz)
#md5sums=()
build() {
mkdir -p $startdir/pkg/usr/share/epsxe
mkdir -p $startdir/pkg/usr/bin
cp $startdir/epsxe $startdir/pkg/usr/bin
cp -R $startdir/src/* $startdir/pkg/usr/share/epsxe
cd $startdir/pkg/usr/share/epsxe
chmod 777 cfg sstates snap memcards
touch memcards/epsxe000.mcr memcards/epsxe001.mcr .epsxerc
chmod 666 memcards/*
chmod 666 .epsxerc
chmod 666 gpuPeteXGL2.cfg
mv gpuPeteXGL2.cfg cfg/
mv cfgPeteXGL2 cfg/
mv libgpuPeteXGL2.so.2.0.8 plugins/
chmod 666 gpuPeteMesaGL.cfg
mv gpuPeteMesaGL.cfg cfg/
mv cfgPeteMesaGL cfg/
mv libgpuPeteMesaGL.so.1.0.76 plugins/
chmod 666 gpuPeopsSoftX.cfg
mv cfgPeopsSoft cfg/
mv gpuPeopsSoftX.cfg cfg/
mv libgpuPeopsSoftX.so.1.0.17 plugins/
mv peops_soft* plugins/
mv cfgPeopsOSS cfg/
mv *PeopsOSS* plugins/
mv readme* plugins/
mv version* plugins/
rm $startdir/pkg/usr/share/epsxe/*.tar.gz
rm $startdir/pkg/usr/share/epsxe/*.zip
}