#Maintainer: George Vlahavas pkgname=megamario pkgver=1.6c pkgrel=1gv arch=x86_64 source=("http://downloads.sourceforge.net/mmario/MegaMario_v1.6c_full.zip" "path_max.patch" "megamario-48.png" "megamario-1.6c-nomusicmessage.patch") docs=("controls.txt" "linux.txt" "readme.txt" "licence.txt" "fixes*.txt") url=http://mmario.sourceforge.net/ slackdesc=\ ( #|-----handy-ruler------------------------------------------------------| "megamario - a Mario Bros. clone" "MegaMario features everything the original features - with better" "graphics, higher resolution, smoother movement and new levels. The" "story of mario and Luigi continues in old-school style. Mega Mario is" "written in C++ using SDL. " ) build() { cd $startdir/src patch -p1 < $startdir/src/path_max.patch || exit 1 patch -p1 < $startdir/src/megamario-1.6c-nomusicmessage.patch || exit 1 make PREFIX=/usr || return 1 make PREFIX=$startdir/pkg/usr install || return 1 install -D -m644 megamario.desktop $startdir/pkg/usr/share/applications/megamario.desktop install -D -m644 $startdir/pkg/usr/share/megamario/gfx/characters/big/player3r.png $startdir/pkg/usr/share/pixmaps/megamario.png sed -i "s/Icon=.*/Icon=megamario/" $startdir/pkg/usr/share/applications/megamario.desktop rm -rf $startdir/pkg/usr/share/pixmaps mkdir -p $startdir/pkg/usr/share/icons/hicolor/48x48/apps cp $startdir/src/megamario-48.png $startdir/pkg/usr/share/icons/hicolor/48x48/apps/megamario.png chmod a+w $startdir/pkg/usr/share/megamario/save.sav ( cd $startdir/pkg/usr/share/$pkgname find -type d -exec chmod 755 {} \; find -type f -exec chmod 644 {} \; ) ( cd $startdir/pkg/usr/share/megamario/gfx/background/ ln -s Iceland.jpg iceland.jpg ln -s canyon.jpg Canyon.jpg ) }