#Maintainer: Thunor Sif Ese #Former Maintainer(s): #Mandatory pkgname=scummvm pkgver=1.2.0 pkgrel=1 zenver=66 arch=i486 source=("http://sourceforge.net/projects/scummvm/files/scummvm/1.2.0/scummvm-1.2.0.tar.bz2") # sourcetemplate should be a directory where both ZENBUILD and # build-$pkgname.sh can be found. sourcetemplate="http://thunor.org.uk/packages/zenwalk/$pkgname-$pkgver" slackdesc=\ ( #|-----handy-ruler------------------------------------------------------| "$pkgname - a graphical point-and-click adventure game interpreter." "ScummVM is a program which allows you to run certain classic graphical" "point-and-click adventure games, provided you already have their data" "files. The clever part about this: ScummVM just replaces the" "executables shipped with the games, allowing you to play them on" "systems for which they were never designed!" ) build() { # Configure, make. cd $startdir/src/$pkgname-$pkgver # Despite the fact that configure says --docdir is supported it isn't. # mpeg2 is disabled by default because it's been replaced by DXA. ./configure --prefix=/usr --enable-all-engines make || return 1 # Install into the $startdir/pkg folder. make DESTDIR=$startdir/pkg install # $startdir/pkg/usr/share/doc/scummvm needs to be fixed. mkdir -p $startdir/pkg/usr/doc mv $startdir/pkg/usr/share/doc/$pkgname $startdir/pkg/usr/doc/$pkgname-$pkgver rmdir $startdir/pkg/usr/share/doc cp $startdir/src/$pkgname-$pkgver/TODO $startdir/pkg/usr/doc/$pkgname-$pkgver # Install the desktop file. mkdir -p $startdir/pkg/usr/share/applications cp $startdir/src/$pkgname-$pkgver/dists/$pkgname.desktop \ $startdir/pkg/usr/share/applications # Install a selection of the icons (the svg icon is huge and I think # is best left in src). mkdir -p $startdir/pkg/usr/share/icons/hicolor/32x32/apps mkdir -p $startdir/pkg/usr/share/icons/hicolor/48x48/apps mkdir -p $startdir/pkg/usr/share/icons/hicolor/64x64/apps cp $startdir/src/$pkgname-$pkgver/backends/platform/gp2x/build/$pkgname.png \ $startdir/pkg/usr/share/icons/hicolor/32x32/apps/$pkgname.png cp $startdir/src/$pkgname-$pkgver/dists/redhat/${pkgname}48.png \ $startdir/pkg/usr/share/icons/hicolor/48x48/apps/$pkgname.png cp $startdir/src/$pkgname-$pkgver/dists/android/res/drawable/$pkgname.png \ $startdir/pkg/usr/share/icons/hicolor/64x64/apps/$pkgname.png # We won't be needing pixmaps. rm -rf $startdir/pkg/usr/share/pixmaps } #Optional docs=() options=() url="http://scummvm.org/" extradepends=() lessdepends=() dotnew=() CFLAGS="" CXXFLAGS="" #doinst() { #}