# SliTaz package receipt.

PACKAGE="libgpg-error"
VERSION="1.9"
CATEGORY="security"
SHORT_DESC="Commons error messages for GnuPG."
MAINTAINER="erjo@slitaz.org"
DEPENDS=""
TARBALL="$PACKAGE-$VERSION.tar.bz2"
WEB_SITE="http://www.gnupg.org/related_software/libgpg-error/"
WGET_URL="ftp://ftp.gnupg.org/gcrypt/libgpg-error/$TARBALL"

# Rules to configure and make the package.
compile_rules()
{
	cd $src
	./configure --prefix=/usr --infodir=/usr/share/info \
	--mandir=/usr/share/man $CONFIGURE_ARGS
	make
	make DESTDIR=$PWD/_pkg install
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
	mkdir -p $fs/usr/bin $fs/usr/lib $fs/usr/share
	
	cp -a $_pkg/usr/bin/gpg-error $fs/usr/bin
	cp -a $_pkg/usr/lib/*.so* $fs/usr/lib
	cp -a $_pkg/usr/share/common-lisp $fs/usr/share
}