diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2013-08-29 09:23:19 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2013-08-29 09:23:36 +0000 |
commit | f40b27c5decc66010571a3db7bb07c0ba1fa90f6 (patch) | |
tree | e1e186ff151cd8e2ad58bef46d736fdc2b65c3f9 /testing | |
parent | af3fbccaeec390893babe057e220ea25abdac505 (diff) | |
download | aports-f40b27c5decc66010571a3db7bb07c0ba1fa90f6.tar.bz2 aports-f40b27c5decc66010571a3db7bb07c0ba1fa90f6.tar.xz |
testing/lua-crypto: upgrade to 0.3.2
Diffstat (limited to 'testing')
-rw-r--r-- | testing/lua-crypto/APKBUILD | 30 |
1 files changed, 21 insertions, 9 deletions
diff --git a/testing/lua-crypto/APKBUILD b/testing/lua-crypto/APKBUILD index 09e1ecc35..471ff267d 100644 --- a/testing/lua-crypto/APKBUILD +++ b/testing/lua-crypto/APKBUILD @@ -1,26 +1,38 @@ # Maintainer: Natanael Copa <ncopa@alpinelinux.org> +_luaver=5.1 pkgname=lua-crypto -pkgver=0.2.0 -pkgrel=3 +pkgver=0.3.2 +pkgrel=0 pkgdesc="a Lua frontend to the OpenSSL cryptographic library" -url="http://luacrypto.luaforge.net/" +url="http://mkottman.github.io/luacrypto/" arch="all" license="MIT/X11" depends= -makedepends="lua-dev openssl-dev" +makedepends="lua$_luaver-dev openssl-dev" install= -subpackages= -source="http://luaforge.net/frs/download.php/1722/luacrypto-0.2.0.tar.gz" +subpackages="$pkgname-dev $pkgname-doc" +source="luacrypto-$pkgver.tar.gz::https://github.com/mkottman/luacrypto/archive/$pkgver.tar.gz" _builddir="$srcdir"/luacrypto-$pkgver build() { cd "$_builddir" - make LUA_VERSION_NUM=510 CFLAGS="$CFLAGS -fPIC" COMPAT_O= + LUA_CFLAGS="$(pkg-config lua$_luaver --cflags)" \ + LUA_LIBS="$(pkg-config lua$_luaver --libs)" \ + ./configure \ + --host=$CHOST \ + --build=$CBUILD \ + --prefix=/usr \ + || return 1 + make cryptodir=/usr/lib/lua/$_luaver || return 1 } package() { cd "$_builddir" - make COMPAT_O= LUA_LIBDIR="$pkgdir"/usr/lib/lua/5.1 install + make install DESTDIR="$pkgdir" cryptodir=/usr/lib/lua/$_luaver \ + || return 1 + find "$pkgdir" -name '*.la' -delete } -md5sums="1e1319d960f0760b113b3e7ad9a3607d luacrypto-0.2.0.tar.gz" +md5sums="07271929beec760a42eff012803490a1 luacrypto-0.3.2.tar.gz" +sha256sums="63c5d7e2539779039114335b9a8f149d63382c4db298d69e70488a0108143bb4 luacrypto-0.3.2.tar.gz" +sha512sums="4cb20d2cc348a11f140210dffb803629034c72cc7232590f4488f559d5c7233e0c41e56fcd0863959ac0b07e64c9aa79ea573e4126fdc11bc3f1b3b49d13343e luacrypto-0.3.2.tar.gz" |