wok annotate oxine/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 380ffe05937a
children 7dd01dedad38
rev   line source
pascal@11226 1 # SliTaz package receipt.
pascal@11226 2
pascal@11226 3 PACKAGE="oxine"
pascal@11226 4 VERSION="0.7.1"
pascal@11226 5 CATEGORY="multimedia"
pascal@11226 6 SHORT_DESC="oxine is a lightweight, purely osd based xine frontend for set-top boxes and home entertainment systems."
pascal@11226 7 MAINTAINER="devl547@gmail.com"
pascal@15000 8 LICENSE="GPL2"
pascal@11226 9 TARBALL="$PACKAGE-$VERSION.tar.gz"
pascal@11226 10 WEB_SITE="http://oxine.sourceforge.net/"
pascal@11226 11 WGET_URL="http://downloads.sourceforge.net/project/$PACKAGE/$PACKAGE/$VERSION/$TARBALL"
pascal@11226 12 BUILD_DEPENDS="libcdio-dev xine-lib-dev curl-dev"
pascal@11226 13 DEPENDS="libcdio xine-lib curl"
pascal@11226 14
pascal@24361 15 # What is the latest version available today?
pascal@24361 16 current_version()
pascal@24361 17 {
pascal@24361 18 wget -O - https://sourceforge.net/projects/oxine/files/oxine/ 2>/dev/null | \
pascal@24361 19 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
pascal@24361 20 sed '/scope="row/!d;s|.*/oxine/||;s|/.*||;q'
pascal@24361 21 }
pascal@24361 22
pascal@11226 23 # Rules to configure and make the package.
pascal@11226 24 compile_rules()
pascal@11226 25 {
pascal@11226 26 ./configure $CONFIGURE_ARGS &&
pascal@11226 27 make && make install
pascal@11226 28 }
pascal@11226 29
pascal@11226 30 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@11226 31 genpkg_rules()
pascal@11226 32 {
pascal@11226 33 mkdir -p $fs/usr/
pascal@11226 34 cp -a $install/usr/bin $fs/usr
pascal@11226 35 cp -a $install/usr/share/ $fs/usr
pascal@11226 36 }