# Contributor: Alan Lacerda # Maintainer: Paul Morgan pkgname=duo_unix pkgver=1.9.18 pkgrel=0 pkgdesc="duosecurity.com two-factor authentication" url="https://duo.com/support/documentation/duounix" arch="all" license="GPL2" depends="openssl zlib" depends_dev="libc-dev openssl-dev zlib-dev" makedepends="$depends_dev" install="" options="suid" subpackages="$pkgname-dev $pkgname-doc" source="https://dl.duosecurity.com/$pkgname-$pkgver.tar.gz" _builddir="$srcdir"/$pkgname-$pkgver prepare() { local i cd "$_builddir" for i in $source; do case $i in *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; esac done } build() { cd "$_builddir" ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --sysconfdir=/etc/duo \ --mandir=/usr/share/man \ --localstatedir=/var \ || return 1 make || return 1 } package() { cd "$_builddir" make DESTDIR="$pkgdir" install || return 1 } md5sums="ee667f65d47782c8082e477db7367aae duo_unix-1.9.18.tar.gz" sha256sums="2eb11dff0a173c62e318587c50faec717e8889fbb6bb2d076e4f31999f9107ae duo_unix-1.9.18.tar.gz" sha512sums="0579771d7b16c47fca28bed1f4ce534a362735667e4703ffda57f88b8937339874535f29f9907041c5c9bcb6e8b62462c9d9b0a87e7b49cb5f1fe040ec2ae8fc duo_unix-1.9.18.tar.gz"