# SliTaz package receipt. PACKAGE="sdlmame" VERSION="0133" CATEGORY="games" SHORT_DESC="Multiple Arcade Machine Emulator - GNU/Linux Port" MAINTAINER="claudinei@slitaz.org" DEPENDS="libsdl gtk+ xorg-libXinerama GConf ORBit2 mesa" BUILD_DEPENDS="$DEPENDS libsdl-dev gtk+-dev xorg-libXinerama-dev GConf-dev \ ORBit2-dev dbus-dev xorg-xproto xorg-renderproto xorg-xineramaproto \ xorg-kbproto expat-dev mesa-dev" TARBALL="$PACKAGE${VERSION}.zip" WEB_SITE="http://rbelmont.mameworld.info/?page_id=163" WGET_URL="" # Rules to configure and make the package. compile_rules() { _URL="http://rbelmont.mameworld.info/$TARBALL" if [ ! -f "$SOURCES_REPOSITORY/$TARBALL" ]; then cd $SOURCES_REPOSITORY wget -U 'Mozilla/5.0' $_URL fi if [ ! -d "$WOK/$PACKAGE/$PACKAGE-$VERSION" ]; then cd $WOK/$PACKAGE unzip -o $SOURCES_REPOSITORY/$TARBALL mv $PACKAGE${VERSION} $PACKAGE-$VERSION fi cd $src make } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { _pkg="$WOK/$PACKAGE/$PACKAGE-$VERSION" mkdir -p $fs/usr/share/sdlmame $fs/etc/sdlmame/ctrlr $fs/usr/bin for dir in artwork docs keymaps roms; do cp -a $_pkg/$dir $fs/usr/share/sdlmame done cp $_pkg/mame $fs/usr/bin cp stuff/mame.ini $fs/etc/sdlmame cp $_pkg/ui.bdf $fs/usr/share/sdlmame }