# Maintainer: A. Wilcox <awilfox@adelielinux.org>
pkgname=libassuan
pkgver=2.5.1
pkgrel=1
pkgdesc="IPC library for GnuPG"
url="https://www.gnupg.org/software/libassuan/index.html"
arch="all"
license="LGPL-2.1+"
depends=""
makedepends="libgpg-error-dev"
subpackages="$pkgname-dev $pkgname-doc"
source="https://www.gnupg.org/ftp/gcrypt/$pkgname/$pkgname-$pkgver.tar.bz2"

build() {
	cd "$builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr
	make
}

check() {
	cd "$builddir"
	make check
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install
}

sha512sums="c8829925221780f175cee8c4084060b0d661229f583a50d400a1903ab7303b2724b99ff9c0fa242881d4c5d779036756e1da54d9143acc0fcd92f302ecb5882d  libassuan-2.5.1.tar.bz2"