From 6f4bc5fbcca9aa1f0c22ff84a3239aa60278a4a3 Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Fri, 21 Jun 2013 06:33:57 +0000 Subject: testing/lua5.2: new aport --- testing/lua5.2/APKBUILD | 130 ++++++++++++++++++++++++++++++ testing/lua5.2/lua-5.2-make.patch | 60 ++++++++++++++ testing/lua5.2/lua-5.2-module_paths.patch | 26 ++++++ 3 files changed, 216 insertions(+) create mode 100644 testing/lua5.2/APKBUILD create mode 100644 testing/lua5.2/lua-5.2-make.patch create mode 100644 testing/lua5.2/lua-5.2-module_paths.patch (limited to 'testing/lua5.2') diff --git a/testing/lua5.2/APKBUILD b/testing/lua5.2/APKBUILD new file mode 100644 index 0000000000..f682a52a98 --- /dev/null +++ b/testing/lua5.2/APKBUILD @@ -0,0 +1,130 @@ +# Maintainer: Natanael Copa +pkgname=lua5.2 +pkgver=5.2.2 +_luaver=${pkgname#lua} +pkgrel=0 +pkgdesc="Powerful light-weight programming language" +url="http://www.lua.org/" +arch="all" +license="MIT" +depends= +makedepends="libtool autoconf automake" +subpackages="$pkgname-dev $pkgname-doc $pkgname-libs" +source="http://www.lua.org/ftp/lua-$pkgver.tar.gz + lua-5.2-make.patch + lua-5.2-module_paths.patch + " + +_builddir="$srcdir"/lua-$pkgver +prepare() { + cd "$_builddir" + for i in $source; do + case $i in + patch*|*.patch) + msg "Applying $i" + patch -p1 -i "$srcdir"/$i || return 1 + ;; + esac + done + + # disable readline + sed -i -e '/#define LUA_USE_READLINE/d' src/luaconf.h + + # we use libtool + cat >configure.ac < "$pkgdir"/usr/lib/pkgconfig/lua$_luaver.pc <