aboutsummaryrefslogtreecommitdiffstats
path: root/community/duo_unix/APKBUILD
blob: e9998fcb0602573520abfbcfa82786716c80e037 (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.10.5
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="1e0a0b056d5cf3ae98649121cdaaeeeed12124d66aac8247e496b7c7c3f3dc382f3f388ad41710a547afcaf71f1b8c64fc409e6622ad0b22e92cc0dd6425811f  duo_unix-1.10.5.tar.gz"