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