aboutsummaryrefslogtreecommitdiffstats
path: root/testing/lua-cyrus-sasl
diff options
context:
space:
mode:
authorLeonardo Arena <rnalrd@alpinelinux.org>2012-01-27 13:48:34 +0000
committerLeonardo Arena <rnalrd@alpinelinux.org>2012-01-27 13:50:28 +0000
commit4706d72028e106c69d2eea911d766d9e80ae2553 (patch)
tree04910a4068671a639f2565190f05ee55f21efe4d /testing/lua-cyrus-sasl
parentae1c8570807704c0e8ebc8fb4db52872fd098607 (diff)
downloadaports-4706d72028e106c69d2eea911d766d9e80ae2553.tar.bz2
aports-4706d72028e106c69d2eea911d766d9e80ae2553.tar.xz
testing/lua-cyrus-sasl: new aport
Cyrus SASL library for Lua 5.1
Diffstat (limited to 'testing/lua-cyrus-sasl')
-rw-r--r--testing/lua-cyrus-sasl/APKBUILD38
-rw-r--r--testing/lua-cyrus-sasl/lua-cyrussasl-v1.0.0-Makefile.patch27
2 files changed, 65 insertions, 0 deletions
diff --git a/testing/lua-cyrus-sasl/APKBUILD b/testing/lua-cyrus-sasl/APKBUILD
new file mode 100644
index 0000000000..b1d8bd80d3
--- /dev/null
+++ b/testing/lua-cyrus-sasl/APKBUILD
@@ -0,0 +1,38 @@
+# Contributor: Leonardo Arena <larena@alpinelinux.org>
+# Maintainer:
+pkgname=lua-cyrus-sasl
+_realname=lua-cyrussasl
+pkgver=1.0.0
+pkgrel=0
+pkgdesc="Cyrus SASL library for Lua 5.1"
+url="https://github.com/JorjBauer/lua-cyrussasl"
+arch="all"
+license="BSD"
+depends=
+makedepends="cyrus-sasl-dev lua-dev wget"
+install=
+subpackages=
+source="http://dev.alpinelinux.org/archive/lua-cyrussals/lua-cyrussasl-v1.0.0-0.tar.gz
+ lua-cyrussasl-v1.0.0-Makefile.patch"
+#source="http://dev.alpinelinux.org/archive/${_realname}/${_realname}-v${pkgver}-0.tar.gz"
+
+_builddir="$srcdir"/$_realname-v$pkgver
+
+prepare() {
+ cd $_builddir
+ patch -p1 < "$srcdir"/lua-cyrussasl-v1.0.0-Makefile.patch
+}
+
+build() {
+ cd "$_builddir"
+ make
+}
+
+package() {
+ cd "$_builddir"
+ mkdir -p "$pkgdir"/usr/lib/lua/5.1
+ make CPATH="$pkgdir"/usr/lib/lua/5.1 install
+}
+
+md5sums="551c0ad88ca114c7b44c8e5c447a9c34 lua-cyrussasl-v1.0.0-0.tar.gz
+fbcb022f3ce9d5679454edac3b1f8c32 lua-cyrussasl-v1.0.0-Makefile.patch"
diff --git a/testing/lua-cyrus-sasl/lua-cyrussasl-v1.0.0-Makefile.patch b/testing/lua-cyrus-sasl/lua-cyrussasl-v1.0.0-Makefile.patch
new file mode 100644
index 0000000000..0d2c63d712
--- /dev/null
+++ b/testing/lua-cyrus-sasl/lua-cyrussasl-v1.0.0-Makefile.patch
@@ -0,0 +1,27 @@
+--- a/Makefile
++++ b/Makefile
+@@ -1,15 +1,15 @@
+ # Linux (Debian Lenny)
+-#CFLAGS=-g -O2 -fpic -I/usr/include/lua5.1
+-#LDFLAGS=-O -shared -fpic -lsasl2
+-#LUAPATH=/usr/share/lua/5.1
+-#CPATH=/usr/lib/lua/5.1
++CFLAGS=-g -O2 -fpic -I/usr/include/lua5.1
++LDFLAGS=-O -shared -fpic -lsasl2
++LUAPATH=/usr/share/lua/5.1
++CPATH=/usr/lib/lua/5.1
+
+ # MacOS
+-CFLAGS=-g -Wall -O2
+-LDFLAGS=-bundle -undefined dynamic_lookup -lsasl2
+-MACOSX_VERSION=10.5
+-LUAPATH=/usr/local/share/lua/5.1
+-CPATH=/usr/local/lib/lua/5.1
++#CFLAGS=-g -Wall -O2
++#LDFLAGS=-bundle -undefined dynamic_lookup -lsasl2
++#MACOSX_VERSION=10.5
++#LUAPATH=/usr/local/share/lua/5.1
++#CPATH=/usr/local/lib/lua/5.1
+
+ #########################################################
+ #