# Template file for 'libassuan'
pkgname=libassuan
version=2.0.3
revision=2
build_style=gnu-configure
makedepends="libgpg-error-devel"
short_desc="IPC library used by some GnuPG related software"
maintainer="Juan RP <xtraeme@gmail.com>"
license="GPL-2"
homepage="http://www.gnupg.org/related_software/libassuan"
distfiles="ftp://ftp.gnupg.org/gcrypt/$pkgname/$pkgname-$version.tar.bz2"
checksum=bad5682374c76bcc0abb1a7a34c9557af6874a477500748e64a7d3def79cac1b
long_desc="
 Libassuan is a small library implementing the so-called Assuan protocol. This
 protocol is used for IPC between most newer GnuPG components. Both, server
 and client side functions are provided."

if [ "$CROSS_BUILD" ]; then
	hostmakedepends="libgpg-error-devel"
fi

libassuan-devel_package() {
	depends="libgpg-error-devel libassuan>=${version}"
	short_desc="${short_desc} - development files"
	pkg_install() {
		vmove usr/bin
		vmove usr/include
		vmove usr/share
	}
}

libassuan_package() {
	pkg_install() {
		vmove usr
	}
}
