diff options
author | Carlo Landmeter <clandmeter@gmail.com> | 2015-03-17 10:39:56 +0000 |
---|---|---|
committer | Carlo Landmeter <clandmeter@gmail.com> | 2015-03-17 10:39:56 +0000 |
commit | 2433aa629811743523d926cb11dccebda4c6827f (patch) | |
tree | f6362600ed9b8a4cb22408f0c8ecce011f3f9999 /main | |
parent | b608a8327f20bd38c068102da75f3591d178d31c (diff) | |
download | aports-2433aa629811743523d926cb11dccebda4c6827f.tar.bz2 aports-2433aa629811743523d926cb11dccebda4c6827f.tar.xz |
testing/lua-turbo: move to main
Diffstat (limited to 'main')
-rw-r--r-- | main/lua-turbo/APKBUILD | 46 | ||||
-rw-r--r-- | main/lua-turbo/fix-bindir.patch | 10 |
2 files changed, 56 insertions, 0 deletions
diff --git a/main/lua-turbo/APKBUILD b/main/lua-turbo/APKBUILD new file mode 100644 index 0000000000..c5cc2585a4 --- /dev/null +++ b/main/lua-turbo/APKBUILD @@ -0,0 +1,46 @@ +# Contributor: Carlo Landmeter <clandmeter@gmail.com> +# Maintainer: +pkgname=lua-turbo +pkgver=1.1 +pkgrel=1 +pkgdesc="a framework built for LuaJIT 2 and Linux" +url="http://www.turbolua.org/" +arch="all" +license="GPL" +depends="luajit" +depends_dev="" +makedepends="$depends_dev openssl-dev" +install="" +subpackages="" +source="$pkgname-$pkgver.tar.gz::https://github.com/kernelsauce/turbo/archive/v$pkgver.tar.gz + fix-bindir.patch" + +_builddir="$srcdir/turbo-$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 PREFIX=/usr LUAJIT_VERSION=2.0.3 || return 1 +} + +package() { + cd "$_builddir" + make PREFIX="$pkgdir"/usr \ + LUAJIT_VERSION=2.0.3 install || return 1 +} + +md5sums="2224ced034263710e4d3e77ed3cb3671 lua-turbo-1.1.tar.gz +5fbc1fcf73ef48998a90b06df782162c fix-bindir.patch" +sha256sums="35427a613e517ddb8b5a7964bba46b13482543bc1ba733d8f9026a56886351dc lua-turbo-1.1.tar.gz +d676d0cd520759f293afdb59e59024a4ad30a8c419ab348e6acc1e72a1bb90a4 fix-bindir.patch" +sha512sums="232998411ccc67f3d13916861a1bfe893229625a645f8f9daa8834a33a22206bff759a62edb14a0c6cfaabead0ba71d07c5b9b80e393b3658c8aa564f362422c lua-turbo-1.1.tar.gz +e8ce4427bcf7040fdf3f711a533a0857d9dcf3678334fd4b32917642cb1a5c540ade3d3c8e26bc6b8a7ce0ff6c6f64c92eda70edec3874e7aa3507acb82c2211 fix-bindir.patch" diff --git a/main/lua-turbo/fix-bindir.patch b/main/lua-turbo/fix-bindir.patch new file mode 100644 index 0000000000..92bb5ef9d8 --- /dev/null +++ b/main/lua-turbo/fix-bindir.patch @@ -0,0 +1,10 @@ +--- a/Makefile.orig ++++ b/Makefile +@@ -89,6 +89,7 @@ + @echo "==== $(LUAJIT_LIBRARYDIR) and ====" + @echo "==== $(LUAJIT_MODULEDIR) ====" + $(MKDIR) $(INSTALL_LIB) ++ $(MKDIR) $(INSTALL_BIN) + $(MKDIR) $(LUA_MODULEDIR)/turbo + $(MKDIR) $(LUAJIT_MODULEDIR)/turbo + $(CP_R) turbo/* $(LUA_MODULEDIR)/turbo |