SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "pom1"

# SliTaz package receipt.

PACKAGE="pom1"
VERSION="1.0.0"
CATEGORY="misc"
TAGS="emulator apple1"
SHORT_DESC="Apple 1 emulator."
MAINTAINER="pascal.bellard@slitaz.org"
LICENSE="GPL2"
WEB_SITE="https://pom1.sourceforge.net/"

TARBALL="$PACKAGE-$VERSION.tar.gz"
WGET_URL="$SF_MIRROR/$PACKAGE/$VERSION/$TARBALL"

DEPENDS="libsdl"
BUILD_DEPENDS="libsdl-dev"

# What is the latest version available today?
current_version()
{
    wget -O - https://sourceforge.net/projects/pom1/files/pom1/ 2>/dev/null | \
    sed '/href/!d;/\/projects\/pom1\/files\/pom1\/[0-9]/!d;s|.* href="|https://sourceforge.net|;s|".*||;q' | xargs wget -O - 2>/dev/null | \
    sed '/tar.gz/!d;s|.*pom1-||;s|.tar.*||;q'
}

# Rules to configure and make the package.
compile_rules()
{
    ./configure            \
        --prefix=/usr        \
        $CONFIGURE_ARGS
    make &&
    make install
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    mkdir -p $fs/usr/share
    cp -a $install/usr/share/pom1 $fs/usr/share
    cp -a $install/usr/bin $fs/usr
}
6025 packages and 203154 files in current database (Thu Apr 25 06:17:47 2024)