# Maintainer: Swen Simon pkgname=epsxe pkgver=1.6.0 pkgrel=9 pkgdesc="Enhanced PSX emulator" url="http://epsxe.com" arch=('i686' 'x86_64') [ "$CARCH" == "i686" ] && depends=(gtk) [ "$CARCH" == "x86_64" ] && depends=(lib32-gtk lib32-ncurses) makedepends=('unzip') license=('custom') install=epsxe.install options=(!strip) source=(http://www.epsxe.com/files/epsxe160lin.zip \ epsxe.desktop \ epsxe.png) md5sums=('32704cfc77939b9a1bd047f22b70eca2' \ '087234e20ae9147f83df24b69fc93bca' \ 'eb0c46b8ae1355c589792f6be1835e47') build() { cd $startdir/src # extract archives unzip -qqo -d 1.6.0 epsxe160lin.zip # removing junk files find 1.6.0 -name "*.me" -exec rm -f {} \; mkdir -p $startdir/pkg/opt/epsxe mkdir -p $startdir/pkg/usr/share/licenses/epsxe # copying binaries cp -r $startdir/src/1.6.0/* $startdir/pkg/opt/epsxe cd $startdir/pkg/opt/epsxe # installing files cp $startdir/src/docs/* $startdir/pkg/usr/share/licenses/epsxe/ install -D -m644 $startdir/epsxe.desktop ${pkgdir}/usr/share/applications/epsxe.desktop || return 1 install -D -m644 $startdir/epsxe.png ${pkgdir}/usr/share/pixmaps/epsxe.png || return 1 # permissions if [ -z `egrep -i "^games" /etc/group` ]; then echo "You have to add games group with uid 50 manually" fi chown -R root:50 $startdir/pkg/opt/epsxe chmod 755 $startdir/pkg/opt/epsxe find * -type f -exec chmod 664 {} \; find * -type d -exec chmod 775 {} \; find epsxe* -type f -exec chmod 755 {} \; }