wok-6.x annotate xfburn/receipt @ rev 24415

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Feb 10 18:04:02 2022 +0000 (2022-02-10)
parents 6e8b1bcb30e2
children 970deba23db6
rev   line source
devl547@5626 1 # SliTaz package receipt.
devl547@5626 2
devl547@5626 3 PACKAGE="xfburn"
devl547@18342 4 VERSION="0.5.4"
devl547@5626 5 CATEGORY="utilities"
devl547@5626 6 SHORT_DESC="GTK+ based CD and DVD burning application"
devl547@5626 7 MAINTAINER="devl547@gmail.com"
pascal@15335 8 LICENSE="GPL2"
devl547@5626 9 TARBALL="$PACKAGE-$VERSION.tar.bz2"
pascal@20671 10 WEB_SITE="https://goodies.xfce.org/projects/applications/xfburn"
pascal@17869 11 WGET_URL="http://archive.xfce.org/src/apps/xfburn/${VERSION%.*}/$TARBALL"
erjo@9994 12
devl547@16202 13 DEPENDS="gtk+ libburn libexo libisofs libxfce4ui"
devl547@16202 14 BUILD_DEPENDS="intltool libburn-dev libexo-dev libisofs-dev libxfce4ui-dev"
erjo@9994 15
pascal@24415 16 # What is the latest version available today?
pascal@24415 17 current_version()
pascal@24415 18 {
pascal@24415 19 wget -O - ${WGET_URL%/*/*}/$(wget -O - ${WGET_URL%/*/*} 2>/dev/null | \
pascal@24415 20 sed '/href="/!d;/Index of/d;s|.*href="||;s|/.*||' | sort -Vr | sed q) 2>/dev/null | \
pascal@24415 21 sed "/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-||;s|.tar.*||" | sort -Vr | sed q
pascal@24415 22 }
pascal@24415 23
devl547@5626 24 # Rules to configure and make the package.
devl547@5626 25 compile_rules()
devl547@5626 26 {
pascal@15335 27 sed -i 's|glib.h>|&\n#include <glib-object.h>|' xfburn/xfburn-settings.h
devl547@5626 28 ./configure --prefix=/usr --sysconfdir=/etc \
erjo@9994 29 --libexecdir=/usr/bin \
devl547@5626 30 --disable-gstreamer \
devl547@5626 31 --disable-dbus \
devl547@11308 32 --disable-hal \
devl547@11308 33 --disable-thunar-vfs \
devl547@5626 34 $CONFIGURE_ARGS &&
devl547@5626 35 make &&
erjo@9994 36 make DESTDIR=$DESTDIR install
devl547@5626 37 }
devl547@5626 38
devl547@5626 39 # Rules to gen a SliTaz package suitable for Tazpkg.
devl547@5626 40 genpkg_rules()
devl547@5626 41 {
devl547@5626 42 mkdir -p $fs/usr/share
pascal@15335 43 cp -a $install/usr/bin $fs/usr
pascal@15335 44 cp -a $install/usr/share/applications $fs/usr/share
pascal@15335 45 cp -a $install/usr/share/icons $fs/usr/share
pascal@15335 46 cp -a $install/usr/share/xfburn $fs/usr/share
devl547@5626 47 }