SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "softgun"

# SliTaz package receipt.

PACKAGE="softgun"
VERSION="0.20"
CATEGORY="development"
SHORT_DESC="ARM software emulator."
MAINTAINER="pankso@slitaz.org"
LICENSE="BSD"
TARBALL="$PACKAGE-$VERSION.tgz"
WEB_SITE="https://softgun.sourceforge.net/"
WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
TAGS="emulator arm"

DEPENDS="alsa-lib"
BUILD_DEPENDS="alsa-lib-dev"

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

# Rules to configure and make the package.
compile_rules()
{
    cd $src
    mkdir -p $DESTDIR/usr/bin
    make && make prefix=$DESTDIR/usr install
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    mkdir -p \
        $fs/usr/share/softgun \
        $fs/usr/share/doc/sotfgun
    cp -a $install/usr/bin $fs/usr
    cp -a $src/configs $fs/usr/share/softgun
    cp $src/README $fs/usr/share/doc/sotfgun
}
6047 packages and 209931 files in current database (Mon Jul 1 15:25:36 2024)