aboutsummaryrefslogblamecommitdiffstats
path: root/community/duo_unix/APKBUILD
blob: e9998fcb0602573520abfbcfa82786716c80e037 (plain) (tree)
1
2
3
4
5
6
7
8
9
                                                      
                                                
                
             
        
                                                   
                                                   
          
                      
          
                                  
                                                    

                                       
                                                                                
                                            
 



                       
         
                      



                                 
                                       
                                         

                                    


           

                                      

 
                                                                                                                                                                     
# 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"