wok annotate libmikmod/receipt @ rev 25606

Update some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Jul 19 11:40:29 2023 +0000 (16 months ago)
parents 65d7d867e0c1
children
rev   line source
pascal@13591 1 # SliTaz package receipt.
pascal@13591 2
pascal@13591 3 PACKAGE="libmikmod"
Hans-G?nter@21255 4 VERSION="3.3.11.1"
pascal@13591 5 CATEGORY="development"
pascal@13591 6 SHORT_DESC="Mikmod module player library."
pascal@13591 7 MAINTAINER="paul@slitaz.org"
pascal@15473 8 LICENSE="LGPL2 LGPL2.1"
Hans-G?nter@21255 9 WEB_SITE="http://mikmod.shlomifish.org/"
Hans-G?nter@21255 10
pascal@13591 11 TARBALL="$PACKAGE-$VERSION.tar.gz"
Hans-G?nter@21255 12 WGET_URL="$SF_MIRROR/mikmod/$PACKAGE/$VERSION/$TARBALL"
pascal@13591 13
pascal@13591 14 DEPENDS=""
pascal@13593 15 BUILD_DEPENDS="bash"
pascal@13591 16
pascal@24411 17 # What is the latest version available today?
pascal@24411 18 current_version()
pascal@24411 19 {
pascal@24411 20 wget -O - https://sourceforge.net/projects/mikmod/files/libmikmod/ 2>/dev/null | \
pascal@25606 21 sed '/scope="row/!d;s|.*a href="|"https://sourceforge.net|;s| .*||;q' | xargs wget -O - 2>/dev/null | \
pascal@24411 22 sed '/scope="row/!d;s|.*/libmikmod/||;s|/.*||;q'
pascal@24411 23 }
pascal@24411 24
pascal@13591 25 # Rules to configure and make the package.
pascal@13591 26 compile_rules()
pascal@13591 27 {
pascal@15277 28 touch macintosh/_libmikmodversion.r
pascal@13593 29 sed -i 's|\$(SHELL)|/bin/bash|' configure
Hans-G?nter@21255 30
Hans-G?nter@21255 31 ./configure \
Hans-G?nter@21255 32 --prefix=/usr \
pascal@13593 33 $CONFIGURE_ARGS &&
Hans-G?nter@21255 34 make -j 1 &&
Hans-G?nter@21255 35 make install
pascal@13591 36 }
pascal@13591 37
pascal@13591 38 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@13591 39 genpkg_rules()
pascal@13591 40 {
pascal@13591 41 mkdir -p $fs/usr/lib
pascal@13591 42 cp -a $install/usr/lib/*.so* /$fs/usr/lib
pascal@13591 43 }