# SliTaz package receipt.

PACKED_SIZE="84.0K"
UNPACKED_SIZE="292.0K"
PACKAGE="vorbis-tools"
VERSION="1.4.2"
CATEGORY="multimedia"
TAGS="multimedia ogg"
SHORT_DESC="Vorbis encoder, decoder and tiny tools."
MAINTAINER="pankso@slitaz.org"
LICENSE="GPL2"
WEB_SITE="https://xiph.org/vorbis/"

TARBALL="$PACKAGE-$VERSION.tar.gz"
WGET_URL="https://downloads.xiph.org/releases/vorbis/$TARBALL"

DEPENDS="flac libao libcrypto libcurl libogg libvorbis speex"
BUILD_DEPENDS="curl-dev flac-dev libao-dev libcrypto-dev libogg-dev
	libvorbis-dev speex-dev"

HOST_ARCH="i486 arm"

# What is the latest version available today?
current_version()
{
	wget -O - https://ftp.osuosl.org/pub/xiph/releases/vorbis/ 2>/dev/null | \
	sed '/vorbis-tools-/!d;/tar/!d;s|.*vorbis-tools-\(.*\).tar.*".*|\1|' | sort -Vr |  sed q
}


# Rules to configure and make the package.
compile_rules()
{
	./configure $CONFIGURE_ARGS &&
	make &&
	make install
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
	cook_copy_folders	bin
}
