blob: 1b1774abd34ef786ddcbdf205db8ac5d060265d9 (
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
44
45
46
47
48
49
50
51
52
|
# Contributor: Fabio Napoleoni <f.napoleoni@gmail.com>
# Maintainer: Fabio Napoleoni <f.napoleoni@gmail.com>
pkgname=google-authenticator
pkgver=20160902
pkgrel=0
pkgdesc="Google Authenticator PAM module"
url="https://github.com/google/google-authenticator"
arch="all"
license="ASL 2.0"
depends=
depends_dev=
makedepends="$depends_dev autoconf automake libtool linux-pam-dev m4 openssl-dev"
install=
subpackages="$pkgname-doc"
source="https://github.com/google/google-authenticator/archive/bd50d15c348a978c314d2b30e586fbc562096223.zip"
_builddir="$srcdir"/$pkgname-bd50d15c348a978c314d2b30e586fbc562096223/libpam
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"
./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
}
md5sums="cb2cd30bfd0bb3badbc5f2f24c38d1e4 bd50d15c348a978c314d2b30e586fbc562096223.zip"
sha256sums="28e30b87a034c9f352d3a9d1499a839e77965f3550df09e9b03f9178346944a9 bd50d15c348a978c314d2b30e586fbc562096223.zip"
sha512sums="e50082dfbaeaea25f1f671080144acb2dc434423462407a2eadb84eb604eefdea3752c89125b6c790d3dc8592f16a4fdd93226ebfa5f605db7a565c46e4303a9 bd50d15c348a978c314d2b30e586fbc562096223.zip"
|