SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "penguin-command"

# SliTaz package receipt.

PACKAGE="penguin-command"
VERSION="1.6.11"
CATEGORY="games"
SHORT_DESC="clone the classic Missile Command Game"
MAINTAINER="René Rivero <arca1085@gmail.com>"
LICENSE="GPL"
TARBALL="$PACKAGE-$VERSION.tar.gz"
WEB_SITE="http://linux-games.com/penguin-command/"
WGET_URL="https://ufpr.dl.sourceforge.net/project/$PACKAGE/$PACKAGE/$VERSION/$TARBALL"

DEPENDS="libsdl libsdl-mixer libsdl-image"
BUILD_DEPENDS="libsdl-dev libsdl-mixer-dev libsdl-image-dev"

# What is the latest version available today?
current_version()
{
    wget -O - https://sourceforge.net/projects/penguin-command/files/penguin-command/ 2>/dev/null | \
    sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
    sed '/scope="row/!d;s|.*/penguin-command/||;s|/.*||;q'
}

# Rules to configure and make the package.
compile_rules()
{
    ./configure && make && make install
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    mkdir -p $fs/usr/share/applications
    cp -a $install/usr/share/penguin-command $fs/usr/share
    cp -a $install/usr/bin $fs/usr
    cp $stuff/penguin-command.png $fs/usr/share/penguin-command/penguin-command.png
    cp $stuff/penguin-command.desktop $fs/usr/share/applications
    chown -R root.root $fs
}
6047 packages and 209931 files in current database (Wed Jun 26 15:35:30 2024)