# SliTaz package receipt.

PACKED_SIZE="148.0K"
UNPACKED_SIZE="676.0K"
PACKAGE="orc"
VERSION="0.4.32"
CATEGORY="multimedia"
SHORT_DESC="The Oil Runtime Compiler."
MAINTAINER="domcox@slitaz.org"
LICENSE="BSD"
WEB_SITE="https://gstreamer.freedesktop.org/projects/orc.html"

TARBALL="$PACKAGE-$VERSION.tar.xz"
WGET_URL="https://gstreamer.freedesktop.org/src/$PACKAGE/$TARBALL"

BUILD_DEPENDS="meson"

HOST_ARCH="i486 arm"

current_version()
{
	wget -O - $(dirname $WGET_URL) 2>/dev/null | \
	sed "/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
}

# Rules to configure and make the package.
compile_rules()
{
	meson	_build		\
		--prefix=/usr &&
	ninja	-C _build &&
	ninja	-C _build install

}

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