SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "xgalaga"

# SliTaz package receipt.

PACKAGE="xgalaga"
VERSION="2.1.1.0"
CATEGORY="games"
SHORT_DESC="A clone of the classic game Galaga for the X Window System."
MAINTAINER="pascal.bellard@slitaz.org"
LICENSE="GPL2"
TARBALL="$PACKAGE-$VERSION.tar.gz"
WEB_SITE="https://sourceforge.net/projects/xgalaga/"
WGET_URL="$SF_MIRROR/$PACKAGE/$VERSION/$TARBALL"

DEPENDS="xorg-libX11 xorg-libXmu xorg-libXt xorg-libXext xorg-libXpm libxcb \
xorg-libXau xorg-libXdmcp xorg-libSM xorg-libICE util-linux-uuid"
BUILD_DEPENDS="xorg-dev"

# What is the latest version available today?
current_version()
{
    wget -O - https://sourceforge.net/projects/$PACKAGE/files/ 2>/dev/null | \
    sed "/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*|\\1|;q"
}

# Rules to configure and make the package.
compile_rules()
{
    mkdir -p $DESTDIR/usr/share/man/man6
    sed -i    -e 's|\$(mandir)|$(DESTDIR)&|' \
        -e 's|@prefix@|/usr/share/xgalaga|' \
        -e 's|@exec_prefix@|/usr/bin|' \
        -e 's|@CREDITSFILE@|/usr/share/xgalaga/CREDITS|' \
            Makefile.in
    ./configure $CONFIGURE_ARGS
    sed -i    -e 's|/usr/sounds/|/usr/share/xgalaga/sounds/|' \
        -e 's|/usr/levels/|/usr/share/xgalaga/levels/|' \
        -e 's|/usr/CREDITS|/usr/share/xgalaga/CREDITS|' \
        -e 's|/usr/scores|/var/games/xgalaga/scores|' \
            config.h
    make &&
    make DESTDIR=$DESTDIR install
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    mkdir -p $fs/usr/share/applications $fs/var/games/xgalaga/scores
    cp -a $install/usr/share/xgalaga $fs/usr/share
    cp -a $install/usr/bin $fs/usr
    cp $stuff/*.desktop $fs/usr/share/applications
}

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