aboutsummaryrefslogtreecommitdiffstats
path: root/community/google-authenticator/APKBUILD
blob: 89405dc0de4e177b6d14c8f5dfe30e6d736a1e49 (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
43
# Contributor: Fabio Napoleoni <f.napoleoni@gmail.com>
# Maintainer: Fabio Napoleoni <f.napoleoni@gmail.com>
pkgname=google-authenticator
pkgver=20160902
_gitrev=bd50d15c348a978c314d2b30e586fbc562096223
pkgrel=1
pkgdesc="Google Authenticator PAM module"
url="https://github.com/google/google-authenticator"
arch="all"
license="ASL-2.0"
depends=""
makedepends="autoconf automake libtool linux-pam-dev m4 libressl-dev"
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/google/google-authenticator/archive/$_gitrev.tar.gz"
builddir="$srcdir/$pkgname-$_gitrev/libpam"

build() {
	cd "$builddir"

	./bootstrap.sh || return 1
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--libdir=/lib \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		|| return 1

	make || return 1
}

package() {
	cd "$builddir"

	make DESTDIR="$pkgdir" install || return 1
	rm "$pkgdir"/usr/share/doc/$pkgname/*.html
}

md5sums="dac97b7941f6f7989dadd059ddcb9e49  google-authenticator-20160902.tar.gz"
sha256sums="522a1ee2a9884ffa68ed6991c0a89727a3ac50a18cb16f356eebeb2135b3a56f  google-authenticator-20160902.tar.gz"
sha512sums="736774f793caf1b83f3598845f8709ef774060c0792e62527013343495480b5a57d6d7f12654cb944b7928679417e13494c361c19f104912221daf4b28075bd3  google-authenticator-20160902.tar.gz"