wok-current annotate dvdauthor/receipt @ rev 24385

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Feb 07 11:38:23 2022 +0000 (2022-02-07)
parents b3295b68d65e
children 7dd01dedad38
rev   line source
pankso@295 1 # SliTaz package receipt.
pankso@295 2
pankso@295 3 PACKAGE="dvdauthor"
Hans-G?nter@20857 4 VERSION="0.7.2"
pankso@295 5 CATEGORY="multimedia"
pankso@295 6 SHORT_DESC="A simple set of tools to help you author a DVD."
pankso@295 7 MAINTAINER="pankso@slitaz.org"
pascal@15000 8 LICENSE="GPL2"
Hans-G?nter@20857 9 WEB_SITE="http://dvdauthor.sourceforge.net/"
Hans-G?nter@20857 10
pascal@15000 11 TARBALL="$PACKAGE-$VERSION.tar.gz"
pascal@15000 12 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
pascal@15000 13
pascal@21123 14 DEPENDS="libpng tiff jpeg libxml2 fribidi libdvdread"
pascal@21123 15 BUILD_DEPENDS="libpng-dev tiff-dev jpeg-dev libxml2-dev libdvdread-dev"
pankso@295 16
pascal@24385 17 # What is the latest version available today?
pascal@24385 18 current_version()
pascal@24385 19 {
pascal@24385 20 wget -O - https://sourceforge.net/projects/dvdauthor/files/ 2>/dev/null | \
pascal@24385 21 sed '/scope="row/!d;/dvdauthor-/!d;s|.*/dvdauthor-||;s|.tar.*||;q'
pascal@24385 22 }
pascal@24385 23
pankso@295 24 # Rules to configure and make the package.
pankso@295 25 compile_rules()
pankso@295 26 {
pankso@295 27 ./configure \
pankso@295 28 --prefix=/usr \
pankso@295 29 --mandir=/usr/share/man \
pascal@2488 30 $CONFIGURE_ARGS &&
Hans-G?nter@20857 31 make -j 1 &&
pascal@15000 32 make DESTDIR=$DESTDIR install
pankso@295 33 }
pankso@295 34
pankso@295 35 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@295 36 genpkg_rules()
pankso@295 37 {
pankso@295 38 mkdir -p $fs/usr/share
pascal@15000 39 cp -a $install/usr/bin $fs/usr
pascal@15000 40 cp -a $install/usr/share/$PACKAGE $fs/usr/share
pankso@295 41 }