From 4706d72028e106c69d2eea911d766d9e80ae2553 Mon Sep 17 00:00:00 2001 From: Leonardo Arena Date: Fri, 27 Jan 2012 13:48:34 +0000 Subject: testing/lua-cyrus-sasl: new aport Cyrus SASL library for Lua 5.1 --- testing/lua-cyrus-sasl/APKBUILD | 38 ++++++++++++++++++++++ .../lua-cyrussasl-v1.0.0-Makefile.patch | 27 +++++++++++++++ 2 files changed, 65 insertions(+) create mode 100644 testing/lua-cyrus-sasl/APKBUILD create mode 100644 testing/lua-cyrus-sasl/lua-cyrussasl-v1.0.0-Makefile.patch (limited to 'testing') diff --git a/testing/lua-cyrus-sasl/APKBUILD b/testing/lua-cyrus-sasl/APKBUILD new file mode 100644 index 000000000..b1d8bd80d --- /dev/null +++ b/testing/lua-cyrus-sasl/APKBUILD @@ -0,0 +1,38 @@ +# Contributor: Leonardo Arena +# 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 000000000..0d2c63d71 --- /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 + + ######################################################### + # -- cgit v1.2.3