aboutsummaryrefslogtreecommitdiffstats
path: root/community/duo_unix/APKBUILD
blob: 78cfbd54841b82420f13d12e3b0561694251e471 (plain)
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
40
41
# Contributor: Alan Lacerda <alacerda@alpinelinux.org>
# Maintainer: Paul Morgan <jumanjiman@gmail.com>
pkgname=duo_unix
pkgver=1.10.3
pkgrel=0
pkgdesc="duosecurity.com two-factor authentication"
url="https://duo.com/support/documentation/duounix"
arch="all"
license="GPL-2.0-only"
depends=""
depends_dev="libressl-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
	libressl-2.7.patch"
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="fec222803d483e55823c1d5586852b718774f86565211b946971c8136af09e4902d747f7462e48c61bdb6615fd1327f18c11984bf49bbaefcbe7055cb221f7b2  duo_unix-1.10.3.tar.gz
9311bef67fb1f0260d47f6079ffec037bcbc273e07f5f839ee5cdbee66b933376018027590a015508d7be243507a630944456905ccbe49baf2a993d9f0f5a845  libressl-2.7.patch"