wok-current diff pom1/receipt @ rev 25685

Add checkspace / fetchall feature for tazpkg
author Stanislas Leduc <shann@slitaz.org>
date Thu Mar 14 20:28:39 2024 +0000 (8 months ago)
parents
children
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/pom1/receipt	Thu Mar 14 20:28:39 2024 +0000
     1.3 @@ -0,0 +1,42 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="pom1"
     1.7 +VERSION="1.0.0"
     1.8 +CATEGORY="misc"
     1.9 +TAGS="emulator apple1"
    1.10 +SHORT_DESC="Apple 1 emulator."
    1.11 +MAINTAINER="pascal.bellard@slitaz.org"
    1.12 +LICENSE="GPL2"
    1.13 +WEB_SITE="https://pom1.sourceforge.net/"
    1.14 +
    1.15 +TARBALL="$PACKAGE-$VERSION.tar.gz"
    1.16 +WGET_URL="$SF_MIRROR/$PACKAGE/$VERSION/$TARBALL"
    1.17 +
    1.18 +DEPENDS="libsdl"
    1.19 +BUILD_DEPENDS="libsdl-dev"
    1.20 +
    1.21 +# What is the latest version available today?
    1.22 +current_version()
    1.23 +{
    1.24 +	wget -O - https://sourceforge.net/projects/pom1/files/pom1/ 2>/dev/null | \
    1.25 +	sed '/href/!d;/\/projects\/pom1\/files\/pom1\/[0-9]/!d;s|.* href="|https://sourceforge.net|;s|".*||;q' | xargs wget -O - 2>/dev/null | \
    1.26 +	sed '/tar.gz/!d;s|.*pom1-||;s|.tar.*||;q'
    1.27 +}
    1.28 +
    1.29 +# Rules to configure and make the package.
    1.30 +compile_rules()
    1.31 +{
    1.32 +	./configure			\
    1.33 +		--prefix=/usr		\
    1.34 +		$CONFIGURE_ARGS
    1.35 +	make &&
    1.36 +	make install
    1.37 +}
    1.38 +
    1.39 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.40 +genpkg_rules()
    1.41 +{
    1.42 +	mkdir -p $fs/usr/share
    1.43 +	cp -a $install/usr/share/pom1 $fs/usr/share
    1.44 +	cp -a $install/usr/bin $fs/usr
    1.45 +}