diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2012-12-20 10:48:39 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2012-12-20 10:48:39 +0000 |
commit | 30978419587d8f13e36c2aa6b79486fa181ae5ce (patch) | |
tree | 313bc6eba7e509b00ac68f590e9a790bbcb69943 /testing/lua-base64url/APKBUILD | |
parent | 032e7e933f773fd8e0af1d9c10b66ff9b3871a6a (diff) | |
download | aports-30978419587d8f13e36c2aa6b79486fa181ae5ce.tar.bz2 aports-30978419587d8f13e36c2aa6b79486fa181ae5ce.tar.xz |
testing/lua-base64url: new aport
A urlsafe base64 library for Lua
https://github.com/ncopa/lbase64url
Diffstat (limited to 'testing/lua-base64url/APKBUILD')
-rw-r--r-- | testing/lua-base64url/APKBUILD | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/testing/lua-base64url/APKBUILD b/testing/lua-base64url/APKBUILD new file mode 100644 index 0000000000..acc86d087a --- /dev/null +++ b/testing/lua-base64url/APKBUILD @@ -0,0 +1,33 @@ +# Maintainer: Natanael Copa <ncopa@alpinelinux.org> +pkgname=lua-base64url +pkgver=5.1.20121219 +pkgrel=0 +pkgdesc="A urlsafe base64 library for Lua" +url="https://github.com/ncopa/lbase64url" +arch="all" +license="Public Domain" +depends= +makedepends="lua-dev" +install= +subpackages= +source="http://dev.alpinelinux.org/archive/lbase64url/lbase64url-$pkgver.tar.gz" + +_builddir="$srcdir"/base64url + +prepare() { + cd "$_builddir" +} + +build() { + cd "$_builddir" + make LUABIN=/usr/bin || return 1 +} + +package() { + cd "$_builddir" + local cmod=$(pkg-config --variable INSTALL_CMOD lua) + mkdir -p "$pkgdir"/$cmod + cp -a *.so "$pkgdir"/$cmod/ +} + +md5sums="041e640987a6e5c9bb087d333faba8b9 lbase64url-5.1.20121219.tar.gz" |