aboutsummaryrefslogtreecommitdiffstats
path: root/testing/duo_unix/APKBUILD
blob: 50e62c343774d1a6a6e7552eaeb83d8362d8af79 (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
42
# Contributor: Alan Lacerda <alacerda@alpinelinux.org>
# Maintainer: 
pkgname=duo_unix
pkgver=1.9.11
pkgrel=0
pkgdesc="duosecurity.com two-factor authentication"
url="https://www.duosecurity.com/docs/duounix"
arch="all"
license="GPLv2"
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 --prefix=/usr || return 1
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
}

md5sums="f9e252cccb850d27343e926a802c5602  duo_unix-1.9.11.tar.gz"
sha256sums="f5c9a44c179727e9284837d6c009b079f5eefba5f241a5a37ae1ff5fff56871c  duo_unix-1.9.11.tar.gz"
sha512sums="8ef1cc66aac1b12b5128ed67a335df1943a626dede12f4373677c72b72cbf8b6d37c5a4913d196f2037f7954e6247eb8367d54c0e74269c3eb96f9b12c7724fc  duo_unix-1.9.11.tar.gz"