summaryrefslogtreecommitdiffstats
path: root/testing
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2014-02-24 09:27:52 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2014-02-24 09:29:06 +0000
commita13e82c6a2d8d00d303ab077aa47f76b5bf7a9d0 (patch)
tree9d6fd926fff000a0ca42e3f694d818c7eb9a27fc /testing
parent88d9ff87329f39aa9c5b91b296ad56980d2e0aa0 (diff)
downloadaports-a13e82c6a2d8d00d303ab077aa47f76b5bf7a9d0.tar.bz2
aports-a13e82c6a2d8d00d303ab077aa47f76b5bf7a9d0.tar.xz
testing/lua5.2-b64: new aport
Lua base64 implementation with support for urlsafe https://github.com/ncopa/lua-b64
Diffstat (limited to 'testing')
-rw-r--r--testing/lua5.2-b64/APKBUILD39
-rw-r--r--testing/lua5.2-b64/lua-b64/APKBUILD41
2 files changed, 80 insertions, 0 deletions
diff --git a/testing/lua5.2-b64/APKBUILD b/testing/lua5.2-b64/APKBUILD
new file mode 100644
index 000000000..3c06893a2
--- /dev/null
+++ b/testing/lua5.2-b64/APKBUILD
@@ -0,0 +1,39 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=lua5.2-b64
+pkgver=0.1
+pkgrel=0
+pkgdesc="Lua 5.2 base64 implementation with support for urlsafe"
+url="https://github.com/ncopa/lua-b64"
+arch="all"
+license="MIT"
+depends=""
+depends_dev=""
+makedepends="$depends_dev lua5.2-dev"
+install=""
+subpackages=""
+source="lua-b64-$pkgver.tar.gz::https://github.com/ncopa/lua-b64/archive/v0.1.tar.gz"
+
+_builddir="$srcdir"/lua-b64-$pkgver
+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
+}
+
+build() {
+ cd "$_builddir"
+ make
+}
+
+package() {
+ cd "$_builddir"
+ install -D b64.so "$pkgdir"/usr/lib/lua/5.2/b64.so || return 1
+}
+
+md5sums="91e537a0aedc7bd2fb4ca38cda1d9f9f lua-b64-0.1.tar.gz"
+sha256sums="5136414bc5db7e6bfc96ff7eb9ac56e797419d04c5b4d3483891c8714239d700 lua-b64-0.1.tar.gz"
+sha512sums="8740d5061db01dca166ce2c959548a3232c85dce156fce3502da35f457db79db2bf23242ee6d26b64f4141c451db733898328b8fc3d1f62b47e8f7ec790577d1 lua-b64-0.1.tar.gz"
diff --git a/testing/lua5.2-b64/lua-b64/APKBUILD b/testing/lua5.2-b64/lua-b64/APKBUILD
new file mode 100644
index 000000000..490776064
--- /dev/null
+++ b/testing/lua5.2-b64/lua-b64/APKBUILD
@@ -0,0 +1,41 @@
+# Contributor:
+# Maintainer:
+pkgname=lua-b64
+pkgver=0.1
+pkgrel=0
+pkgdesc=""
+url=""
+arch="all"
+license=""
+depends=""
+depends_dev=""
+makedepends="$depends_dev"
+install=""
+subpackages="$pkgname-dev $pkgname-doc"
+source="lua-b64-$pkgver.tar.gz::https://github.com/ncopa/lua-b64/archive/v$pkgver.tar.gz"
+
+_builddir="$srcdir"/lua-b64-$pkgver
+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
+}
+
+build() {
+ cd "$_builddir"
+ make || return 1
+}
+
+package() {
+ cd "$_builddir"
+ make DESTDIR="$pkgdir" install || return 1
+ rm -f "$pkgdir"/usr/lib/*.la
+}
+
+md5sums="91e537a0aedc7bd2fb4ca38cda1d9f9f lua-b64-0.1.tar.gz"
+sha256sums="5136414bc5db7e6bfc96ff7eb9ac56e797419d04c5b4d3483891c8714239d700 lua-b64-0.1.tar.gz"
+sha512sums="8740d5061db01dca166ce2c959548a3232c85dce156fce3502da35f457db79db2bf23242ee6d26b64f4141c451db733898328b8fc3d1f62b47e8f7ec790577d1 lua-b64-0.1.tar.gz"