wok-current annotate libdvdnav/receipt @ rev 24491

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Feb 18 22:59:06 2022 +0000 (2022-02-18)
parents ede1d184d5c5
children ac0d01890066
rev   line source
mojo@22262 1 # SliTaz package receipt.
mojo@22262 2
mojo@22262 3 PACKAGE="libdvdnav"
mojo@22262 4 VERSION="6.0.1"
mojo@22262 5 CATEGORY="system-tools"
mojo@22262 6 SHORT_DESC="Library for navigating a DVD."
mojo@22262 7 MAINTAINER="mojo@slitaz.org"
mojo@22262 8 LICENSE="GPL2"
mojo@22262 9 WEB_SITE="http://dvdnav.mplayerhq.hu/"
mojo@22262 10
mojo@22262 11 TARBALL="$PACKAGE-$VERSION.tar.bz2"
mojo@22262 12 WGET_URL="https://downloads.videolan.org/pub/videolan/$PACKAGE/$VERSION/$TARBALL"
mojo@22262 13
mojo@22262 14 BUILD_DEPENDS="libdvdread libdvdread-dev"
mojo@22262 15
pascal@24447 16 # What is the latest version available today?
pascal@24447 17 current_version()
pascal@24447 18 {
pascal@24453 19 wget -O - https://downloads.videolan.org/pub/videolan/$PACKAGE/last 2>/dev/null | \
pascal@24453 20 sed "/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-||;s|.tar.*||" | sort -Vr | sed q
pascal@24447 21 }
pascal@24447 22
mojo@22262 23 # Rules to configure and make the package.
mojo@22262 24 compile_rules()
mojo@22262 25 {
mojo@22262 26 ./configure \
mojo@22262 27 $CONFIGURE_ARGS &&
mojo@22262 28 make &&
mojo@22262 29 make install
mojo@22262 30 }
mojo@22262 31
mojo@22262 32 # Rules to gen a SliTaz package suitable for Tazpkg.
mojo@22262 33 genpkg_rules()
mojo@22262 34 {
mojo@22262 35 mkdir -p $fs/usr/lib
mojo@22262 36 cp -a $install/usr/lib/*.so* $fs/usr/lib
mojo@22262 37 }