wok annotate pom1/receipt @ rev 25794

created recipe for exo-lang
author Hans-G?nter Theisgen
date Wed Oct 23 16:19:52 2024 +0100 (4 weeks ago)
parents
children
rev   line source
pascal@25545 1 # SliTaz package receipt.
pascal@25545 2
pascal@25545 3 PACKAGE="pom1"
pascal@25545 4 VERSION="1.0.0"
pascal@25545 5 CATEGORY="misc"
pascal@25545 6 TAGS="emulator apple1"
pascal@25545 7 SHORT_DESC="Apple 1 emulator."
pascal@25545 8 MAINTAINER="pascal.bellard@slitaz.org"
pascal@25545 9 LICENSE="GPL2"
pascal@25545 10 WEB_SITE="https://pom1.sourceforge.net/"
pascal@25545 11
pascal@25545 12 TARBALL="$PACKAGE-$VERSION.tar.gz"
pascal@25545 13 WGET_URL="$SF_MIRROR/$PACKAGE/$VERSION/$TARBALL"
pascal@25545 14
pascal@25545 15 DEPENDS="libsdl"
pascal@25545 16 BUILD_DEPENDS="libsdl-dev"
pascal@25545 17
pascal@25545 18 # What is the latest version available today?
pascal@25545 19 current_version()
pascal@25545 20 {
pascal@25545 21 wget -O - https://sourceforge.net/projects/pom1/files/pom1/ 2>/dev/null | \
pascal@25545 22 sed '/href/!d;/\/projects\/pom1\/files\/pom1\/[0-9]/!d;s|.* href="|https://sourceforge.net|;s|".*||;q' | xargs wget -O - 2>/dev/null | \
pascal@25545 23 sed '/tar.gz/!d;s|.*pom1-||;s|.tar.*||;q'
pascal@25545 24 }
pascal@25545 25
pascal@25545 26 # Rules to configure and make the package.
pascal@25545 27 compile_rules()
pascal@25545 28 {
pascal@25545 29 ./configure \
pascal@25545 30 --prefix=/usr \
pascal@25545 31 $CONFIGURE_ARGS
pascal@25545 32 make &&
pascal@25545 33 make install
pascal@25545 34 }
pascal@25545 35
pascal@25545 36 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@25545 37 genpkg_rules()
pascal@25545 38 {
pascal@25545 39 mkdir -p $fs/usr/share
pascal@25545 40 cp -a $install/usr/share/pom1 $fs/usr/share
pascal@25545 41 cp -a $install/usr/bin $fs/usr
pascal@25545 42 }