wok annotate softgun/receipt @ rev 25460

Update sourceforge.net web_sites with https://
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Sep 28 08:10:35 2022 +0000 (19 months ago)
parents e919c5a2742d
children 29df00e1e19d
rev   line source
pankso@12742 1 # SliTaz package receipt.
pankso@12742 2
pankso@12742 3 PACKAGE="softgun"
pankso@12742 4 VERSION="0.20"
pankso@12742 5 CATEGORY="development"
pankso@12742 6 SHORT_DESC="ARM software emulator."
pankso@12742 7 MAINTAINER="pankso@slitaz.org"
pascal@15593 8 LICENSE="BSD"
pankso@12742 9 TARBALL="$PACKAGE-$VERSION.tgz"
pascal@25460 10 WEB_SITE="https://softgun.sourceforge.net/"
pankso@12742 11 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
pascal@13041 12 TAGS="emulator arm"
pankso@12742 13
pankso@12742 14 DEPENDS="alsa-lib"
pankso@12742 15 BUILD_DEPENDS="alsa-lib-dev"
pankso@12742 16
pascal@24348 17 # What is the latest version available today?
pascal@24348 18 current_version()
pascal@24348 19 {
pascal@24348 20 wget -O - https://sourceforge.net/projects/softgun/files/softgun/ 2>/dev/null | \
pascal@24348 21 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
pascal@24348 22 sed '/scope="row/!d;s|.*/softgun-||;s|.tgz.*||;q'
pascal@24348 23 }
pascal@24348 24
pankso@12742 25 # Rules to configure and make the package.
pankso@12742 26 compile_rules()
pankso@12742 27 {
pankso@12742 28 cd $src
pankso@12742 29 mkdir -p $DESTDIR/usr/bin
pankso@12742 30 make && make prefix=$DESTDIR/usr install
pankso@12742 31 }
pankso@12742 32
pankso@12742 33 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@12742 34 genpkg_rules()
pankso@12742 35 {
pankso@12742 36 mkdir -p \
pankso@12742 37 $fs/usr/share/softgun \
pankso@12742 38 $fs/usr/share/doc/sotfgun
pankso@12742 39 cp -a $install/usr/bin $fs/usr
pankso@12742 40 cp -a $src/configs $fs/usr/share/softgun
pankso@12742 41 cp $src/README $fs/usr/share/doc/sotfgun
pankso@12742 42 }