#Maintainer: George Vlahavas (vlahavas@gmail.com, gapan@zenwalk forums) pkgname=cpc4x pkgver=0.26 pkgrel=1 zenver=52 arch=i486 source=("http://ulrich-cordes.gmxhome.de/cpc/zip/cpc4x_026_source.tgz" "http://users.zenwalk.org/user-accounts/gapan/cpc4x/zen-cpc4x-0.26.patch" "http://users.zenwalk.org/user-accounts/gapan/cpc4x/icons.tar.gz" "http://users.zenwalk.org/user-accounts/gapan/cpc4x/cpc4x.desktop" "http://users.zenwalk.org/user-accounts/gapan/cpc4x/cpc4x") docs=("readme*" "install" "copying" "changelog" "authors" "news" "todo" "DirectoryStructure.txt" "Versionen.txt" "Verzeichnisstruktur.txt") url=http://ulrich-cordes.gmxhome.de/cpc/english/cpcemu.htm options=('norequiredbuilder' 'keepdepfile') slackdesc=\ ( #|-----handy-ruler------------------------------------------------------| "cpc4x - an Amstrad CPC emulator" "CPC4X is in many ways the nicest Amstrad emulator on Linux. It's easy" "to get going, even from source, with neat documentation. It has sound" "and supports all three graphics modes. The GUI windows use TCL/Tk 8.2" "if available, or basic shell facilities otherwise." ) build() { cd $startdir/src/cpc # Patch for proper flags and installation directory patch -p0 < ../zen-cpc4x-0.26.patch # Build make -f Makefile.admin config make -f Makefile.admin # Install mkdir -p $startdir/pkg/usr/bin cp -a $startdir/src/cpc4x $startdir/pkg/usr/bin chmod a+x $startdir/pkg/usr/bin/cpc4x mkdir -p $startdir/pkg/usr/share/cpc4x cp -a cpc4x.bin disc rom icons menus html $startdir/pkg/usr/share/cpc4x # Copy icons to the right place ICONSIZES="128 72 64 48 32 24 22 16" for i in $ICONSIZES; do mkdir -p $startdir/pkg/usr/share/icons/hicolor/$i\x$i/apps; mv $startdir/src/$pkgname-$i.png $startdir/pkg/usr/share/icons/hicolor/$i\x$i/apps/$pkgname.png; done; chown -R root:root $startdir/pkg }