aboutsummaryrefslogtreecommitdiffstats
path: root/community/duo_unix/APKBUILD
blob: b7919afe669f0d6caeb65cef9dc0c0f2bc979342 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# Contributor: Alan Lacerda <alacerda@alpinelinux.org>
# Maintainer: Paul Morgan <jumanjiman@gmail.com>
pkgname=duo_unix
pkgver=1.11.0
pkgrel=1
pkgdesc="duosecurity.com two-factor authentication"
url="https://duo.com/support/documentation/duounix"
arch="all"
license="GPL-2.0-only"
depends=""
depends_dev="openssl-dev zlib-dev"
makedepends="$depends_dev automake autoconf libtool"
options="suid"
subpackages="$pkgname-dev $pkgname-doc"
source="https://github.com/duosecurity/duo_unix/archive/$pkgname-$pkgver.tar.gz"
builddir="$srcdir"/$pkgname-$pkgname-$pkgver

prepare() {
	default_prepare
	./bootstrap
}
build() {
	cd "$builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc/duo \
		--mandir=/usr/share/man \
		--localstatedir=/var
	make
}

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

sha512sums="9a58de49208511a12942575959d0c3a438a216f25b478035cbf2bbd04d2c644ed45f32d77ef947d8b181e7005fd5954990aab3c9d9301fa3f790918faad43e6a  duo_unix-1.11.0.tar.gz"