# SliTaz package receipt.

PACKED_SIZE="36.0K"
UNPACKED_SIZE="76.0K"
PACKAGE="popt"
VERSION="1.18"
CATEGORY="system-tools"
SHORT_DESC="Library for parsing command line options."
MAINTAINER="pankso@slitaz.org"
LICENSE="MIT"
WEB_SITE="https://github.com/rpm-software-management/popt"

TARBALL="$PACKAGE-$VERSION.tar.gz"
WGET_URL="https://github.com/rpm-software-management/$PACKAGE/archive/refs/tags/$PACKAGE-$VERSION-release.tar.gz"

SUGGESTED="popt-lang"
BUILD_DEPENDS="automake libtool"

HOST_ARCH="i486 arm"

# What is the latest version available today?
current_version()
{
	wget -O - ${WGET_URL%/arch*}/tags 2>/dev/null | \
	sed '/tag\//!d;s|.*tag/[a-z-]*||;s|".*||;s|-release||;q'
}

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

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