#Maintainer: George Vlahavas (vlahavas~at~gmail~dot~com, gapan@zenwalk forums) pkgname=minivmac pkgver=3.0.4 zenver=54 pkgrel=1 arch=i486 source=("http://prdownloads.sourceforge.net/minivmac/minivmac-3.0.4-xgen.src.tgz" "http://pnboy.pinguix.com/gapan/$pkgname/icons.tar.gz" "http://pnboy.pinguix.com/gapan/$pkgname/minivmac-launch" "http://pnboy.pinguix.com/gapan/$pkgname/minivmac.desktop") docs=("readme.txt" "copying.txt") url=http://minivmac.sourceforge.net/index.html sourcetemplate=http://pnboy.pinguix.com/gapan/$pkgname options=('norequiredbuilder' 'keepdepfile' 'noautodotnew') slackdesc=\ ( #|-----handy-ruler------------------------------------------------------| "minivmac - An Apple Macintosh Plus emulator" "Mini vMac emulates a Macintosh Plus, one of the earliest of Macintosh" "computers, sold between 1986 and 1990. It can run old Macintosh" "software that otherwise couldn’t be used on recent computers, and so" "helps to preserve history, from the era when the modern user interface" "for computers was being defined." "You will need a ROM image extracted from a real Macintosh Plus to use" "this. You will also need an OS to run Mini vMac with; Apple lets you" "download System 6 and System 7 from their website:" "http://www.info.apple.com/support/oldersoftwarelist.html" ) build() { cd $startdir/src/$pkgname-$pkgver-xgen sed -i "s|mk_COptions = -c|mk_COptions = -c -O2 -march=i486 -mtune=i686|" Makefile make || return 1 mkdir -p $startdir/pkg/usr/bin cp $startdir/src/minivmac-launch $startdir/pkg/usr/bin/minivmac chown root:root $startdir/pkg/usr/bin/minivmac chmod 755 $startdir/pkg/usr/bin/minivmac mkdir -p $startdir/pkg/usr/share/minivmac cp minivmac $startdir/pkg/usr/share/minivmac # Copy icons to the right place ICONSIZES="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; }