Receipt for: dvdauthor

source
# SliTaz package receipt.

PACKAGE="dvdauthor"
VERSION="0.7.2"
CATEGORY="multimedia"
SHORT_DESC="A simple set of tools to help you author a DVD."
MAINTAINER="pankso@slitaz.org"
LICENSE="GPL2"
WEB_SITE="https://sourceforge.net/projects/dvdauthor/"

TARBALL="$PACKAGE-$VERSION.tar.gz"
WGET_URL="$SF_MIRROR/sourceforge/$PACKAGE/$TARBALL"

DEPENDS="libpng tiff jpeg libxml2 fribidi libdvdread"
BUILD_DEPENDS="libpng-dev tiff-dev jpeg-dev libxml2-dev libdvdread-dev freetype-dev"

# What is the latest version available today?
current_version()
{
	wget -O - https://sourceforge.net/projects/dvdauthor/files/ 2>/dev/null | \
	sed '/scope="row/!d;/dvdauthor-/!d;s|.*/dvdauthor-||;s|.tar.*||;q'
}

# Rules to configure and make the package.
compile_rules()
{
	./configure \
		--prefix=/usr \
		--mandir=/usr/share/man \
		$CONFIGURE_ARGS &&
	make -j 1 &&
	make DESTDIR=$DESTDIR install
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
	mkdir -p $fs/usr/share
	cp -a $install/usr/bin $fs/usr
	cp -a $install/usr/share/$PACKAGE $fs/usr/share
}