# SliTaz package receipt.

PACKAGE="pinentry-gtk"
VERSION="0.8.1"
CATEGORY="security"
SHORT_DESC="Allow GnuPG to read passphrases and PIN numbers in a secure manner (GTK+ GUI)."
# Bring the curses version as fallback if there's no X display.
DEPENDS="gtk+ libcap pinentry"
SOURCE="pinentry"
TARBALL="$SOURCE-$VERSION.tar.gz"
WEB_SITE="http://www.gnupg.org/"
WGET_URL="ftp://ftp.gnupg.org/gcrypt/pinentry/$TARBALL"

# Rules to gen a SliTaz package suitable for Tazpkg.

compile_rules()
{
	cd $src
	./configure --enable-pinentry-gtk2 \
		--enable-fallback-curses \
		--disable-pinentry-curses \
		--disable-pinentry-gtk \
		--disable-pinentry-qt \
		--disable-pinentry-qt4 \
		$CONFIGURE_ARGS &&
	make &&
	make install
}

genpkg_rules()
{
	mkdir -p $fs/usr/
	cp -a $_pkg/usr/bin $fs/usr
}