Receipt for: spk

source
# SliTaz package receipt.

PACKAGE="spk"
VERSION="2.3"
CATEGORY="base-system"
SHORT_DESC="Fast and Light SliTaz Packages Toolset"
MAINTAINER="pankso@slitaz.org"
LICENSE="BSD"
TARBALL="$PACKAGE-$VERSION.tar.gz"
WEB_SITE="http://www.slitaz.org/"
WGET_URL="http://hg.slitaz.org/$PACKAGE/archive/$VERSION.tar.gz"
HOST_ARCH="i486 arm x86_64"

# ncursesw-dev: build the spk-tui ncurses interface. gcc comes with the
# build base. sqlite is only SUGGESTED: spk-sql is an optional accelerator
# and every tool falls back to the flat-file (grep) paths without it.
BUILD_DEPENDS="ncursesw-dev"
DEPENDS="slitaz-base-files ncursesw"
SUGGESTED="sqlite"

current_version()
{
	wget -O - http://hg.slitaz.org/$PACKAGE/ 2>/dev/null | \
	sed '/^Changeset/!d;s|.*">|http://hg.slitaz.org/'$PACKAGE'/rev/|;s|<.*||' | \
	xargs wget -O - 2>/dev/null | sed '/rev /!d;s|.*rev ||;s| .*||;s|.|&.|g;s|.$||'
}

# Rules to configure and make the package.
compile_rules()
{
	# install-tui builds and installs the ncurses TUI (needs ncursesw-dev).
	make DESTDIR=$install install install-tui
}

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