diff options
author | Jakub Jirutka <jakub@jirutka.cz> | 2016-09-02 15:45:46 +0200 |
---|---|---|
committer | Jakub Jirutka <jakub@jirutka.cz> | 2016-09-02 15:53:37 +0200 |
commit | dd7672ad1a6de0fa8479854700b2a1b56688cd95 (patch) | |
tree | d848bca1240a02d0977ab2e5a75290ff9cc4a6c6 /unmaintained | |
parent | af7f660373706a19849f8c830e81ee4686674004 (diff) | |
download | aports-dd7672ad1a6de0fa8479854700b2a1b56688cd95.tar.bz2 aports-dd7672ad1a6de0fa8479854700b2a1b56688cd95.tar.xz |
unmaintained/google-authenticator: improve abuild
Diffstat (limited to 'unmaintained')
-rw-r--r-- | unmaintained/google-authenticator/APKBUILD | 59 |
1 files changed, 25 insertions, 34 deletions
diff --git a/unmaintained/google-authenticator/APKBUILD b/unmaintained/google-authenticator/APKBUILD index 1b1774abd3..ae9ff66bbd 100644 --- a/unmaintained/google-authenticator/APKBUILD +++ b/unmaintained/google-authenticator/APKBUILD @@ -2,51 +2,42 @@ # Maintainer: Fabio Napoleoni <f.napoleoni@gmail.com> pkgname=google-authenticator pkgver=20160902 +_gitrev=bd50d15c348a978c314d2b30e586fbc562096223 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= +license="ASL-2.0" +depends="" +makedepends="autoconf automake libtool linux-pam-dev m4 openssl-dev" 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 -} +source="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 + cd "$builddir" - make || return 1 + ./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" + cd "$builddir" + make DESTDIR="$pkgdir" install || return 1 + rm "$pkgdir"/usr/share/doc/$pkgname/*.html } -md5sums="cb2cd30bfd0bb3badbc5f2f24c38d1e4 bd50d15c348a978c314d2b30e586fbc562096223.zip" -sha256sums="28e30b87a034c9f352d3a9d1499a839e77965f3550df09e9b03f9178346944a9 bd50d15c348a978c314d2b30e586fbc562096223.zip" -sha512sums="e50082dfbaeaea25f1f671080144acb2dc434423462407a2eadb84eb604eefdea3752c89125b6c790d3dc8592f16a4fdd93226ebfa5f605db7a565c46e4303a9 bd50d15c348a978c314d2b30e586fbc562096223.zip" +md5sums="dac97b7941f6f7989dadd059ddcb9e49 bd50d15c348a978c314d2b30e586fbc562096223.tar.gz" +sha256sums="522a1ee2a9884ffa68ed6991c0a89727a3ac50a18cb16f356eebeb2135b3a56f bd50d15c348a978c314d2b30e586fbc562096223.tar.gz" +sha512sums="736774f793caf1b83f3598845f8709ef774060c0792e62527013343495480b5a57d6d7f12654cb944b7928679417e13494c361c19f104912221daf4b28075bd3 bd50d15c348a978c314d2b30e586fbc562096223.tar.gz" |