libpam-google-authenticator: misc cleanups.

- Build with our {C,LD}FLAGS.
- Fix installation.
- Remove unnecessary rdeps and correct bdeps.

Close #754
This commit is contained in:
Juan RP 2014-12-21 07:37:52 +01:00
parent a88db0b6b3
commit 9e1d4a1cba
1 changed files with 12 additions and 4 deletions

View File

@ -1,10 +1,8 @@
# Template file for 'google-authenticator'
pkgname=libpam-google-authenticator
version="1.0"
version=1.0
revision=1
build_style=gnu-makefile
depends="pam-libs>=1.1.8"
makedepends="pam-devel>=1.1.8"
makedepends="pam-devel"
hostmakedepends="pkg-config"
short_desc="Google's two-factor authentication project"
maintainer="Sean R. Lang <srlang@ncsu.edu>"
@ -12,3 +10,13 @@ license="Apache-2.0"
homepage="https://google-authenticator.googlecode.com"
distfiles="${homepage}/files/${pkgname}-${version}-source.tar.bz2"
checksum=80426045d13ce7a2bf56c692ccfb1751cef3c7484752ad40738facf729264d4b
do_build() {
make CC=$CC CFLAGS="$CFLAGS" LDFLAGS="$LDFLAGS" ${makejobs}
}
do_install() {
vbin google-authenticator
vinstall pam_google_authenticator.so 755 usr/lib/security
vdoc README
vdoc FILEFORMAT
}