diff --git a/srcpkgs/libpam-google-authenticator/template b/srcpkgs/libpam-google-authenticator/template index bb5f8805428..c07160ef042 100644 --- a/srcpkgs/libpam-google-authenticator/template +++ b/srcpkgs/libpam-google-authenticator/template @@ -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 " @@ -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 +}