# SliTaz package receipt.

PACKAGE="nms"
VERSION="1.0.1"
CATEGORY="utilities"
SHORT_DESC="Decrypting effects for text."
MAINTAINER="paul@slitaz.org"
LICENSE="GPL3"
WEB_SITE="https://github.com/bartobri/no-more-secrets"
REPOLOGY="no-more-secrets"

SOURCE="no-more-secrets"
TARBALL="$SOURCE-$VERSION.tar.gz"
WGET_URL="$WEB_SITE/archive/v$VERSION/$TARBALL"

PROVIDE="no-more-secrets"
DEPENDS="ncurses"
BUILD_DEPENDS="ncurses-dev"

current_version()
{
	wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
	sed '/archive.*tar/!d;s|.*/v\(.*\).tar.*|\1|;q'
}

# Rules to configure and make the package.
compile_rules()
{
	make &&
	make prefix=/usr DESTDIR=$DESTDIR install
}

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