SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "opentyrian"

# SliTaz package receipt.

PACKAGE="opentyrian"
VERSION="r886"
CATEGORY="games"
SHORT_DESC="OpenTyrian is a port of the DOS shoot-em-up Tyrian"
MAINTAINER="mallory@sweetpeople.org"
LICENSE="GPL2"
WEB_SITE="https://github.com/opentyrian/opentyrian"
TARBALL="$PACKAGE-$VERSION.tar.bz2"
WGET_URL="mercurial|https://opentyrian.googlecode.com/hg/"

DEPENDS="libsdl libsdl-mixer libsdl-net tyrian"
BUILD_DEPENDS="libsdl-dev libsdl-mixer-dev libsdl-net-dev mercurial"

# What is the latest version available today?
current_version()
{
    wget -O - $WEB_SITE/tags 2>/dev/null | \
    sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q'
}

# Rules to configure and make the package.
compile_rules()
{
    cd $src
    make release
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    mkdir -p $fs/usr/bin $fs/usr/share/applications \
        $fs/usr/share/pixmaps $fs/usr/games/opentyrian
    cp $src/opentyrian $fs/usr/games/opentyrian
    cp $src/linux/opentyrian.desktop $fs/usr/share/applications
    cp $src/linux/icons/tyrian-32.png $fs/usr/share/pixmaps/opentyrian.png
    cat > $fs/usr/bin/opentyrian <<EOF
#!/bin/sh
here=$(pwd)
cd /usr/games/opentyrian
./opentyrian
cd $here
EOF
    chmod +x $fs/usr/bin/opentyrian
}

6025 packages and 203154 files in current database (Thu Apr 25 06:17:47 2024)