wok-current annotate libspectrum/receipt @ rev 24411

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Feb 09 17:57:59 2022 +0000 (2022-02-09)
parents 87b6697bb350
children efe7f633e352
rev   line source
slaxemulator@9457 1 # SliTaz package receipt.
slaxemulator@9457 2
slaxemulator@9457 3 PACKAGE="libspectrum"
Hans-G?nter@21300 4 VERSION="1.4.4"
slaxemulator@9457 5 CATEGORY="misc"
Hans-G?nter@21300 6 SHORT_DESC="ZX Spectrum emulator support library."
slaxemulator@9457 7 MAINTAINER="slaxemulator@gmail.com"
pascal@14718 8 LICENSE="GPL2"
pascal@21569 9 WEB_SITE="http://fuse-emulator.sourceforge.net/libspectrum.php"
Hans-G?nter@21300 10
slaxemulator@9457 11 TARBALL="$PACKAGE-$VERSION.tar.gz"
slaxemulator@9457 12 WGET_URL="$SF_MIRROR/fuse-emulator/$TARBALL"
slaxemulator@9457 13
Hans-G?nter@21300 14 DEPENDS="audiofile glib libgcrypt zlib"
pascal@14718 15
pascal@24411 16 # What is the latest version available today?
pascal@24411 17 current_version()
pascal@24411 18 {
pascal@24411 19 wget -O - https://sourceforge.net/projects/fuse-emulator/files/libspectrum/ 2>/dev/null | \
pascal@24411 20 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
pascal@24411 21 sed '/scope="row/!d;s|.*/libspectrum/||;s|/.*||;q'
pascal@24411 22 }
pascal@24411 23
slaxemulator@9457 24 # Rules to configure and make the package.
slaxemulator@9457 25 compile_rules()
slaxemulator@9457 26 {
Hans-G?nter@21300 27 ./configure $CONFIGURE_ARGS &&
Hans-G?nter@21300 28 make -j 1 &&
Hans-G?nter@21300 29 make install
slaxemulator@9457 30 }
slaxemulator@9457 31
slaxemulator@9457 32 # Rules to gen a SliTaz package suitable for Tazpkg.
slaxemulator@9457 33 genpkg_rules()
slaxemulator@9457 34 {
slaxemulator@9457 35 mkdir -p $fs/usr/lib
pascal@14718 36 cp -a $install/usr/lib/*.so* $fs/usr/lib
slaxemulator@9457 37 }