aboutsummaryrefslogtreecommitdiffstats
path: root/main/lua-socket
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2016-05-02 10:56:32 +0200
committerNatanael Copa <ncopa@alpinelinux.org>2016-05-02 10:57:56 +0200
commitda1753705d0912f2f753df3302e2370a948ef8a8 (patch)
tree44c8f68d3b70334a51ee561beff27b3ceb46b968 /main/lua-socket
parentce60f2f4d3bab8af68eed687b98f88301ad29d9f (diff)
downloadaports-da1753705d0912f2f753df3302e2370a948ef8a8.tar.bz2
aports-da1753705d0912f2f753df3302e2370a948ef8a8.tar.xz
main/lua-socket: fix include search path
set cflags to have correct include path for correct version of lua
Diffstat (limited to 'main/lua-socket')
-rw-r--r--main/lua-socket/APKBUILD15
1 files changed, 7 insertions, 8 deletions
diff --git a/main/lua-socket/APKBUILD b/main/lua-socket/APKBUILD
index 86dea01b90..6a253bbbec 100644
--- a/main/lua-socket/APKBUILD
+++ b/main/lua-socket/APKBUILD
@@ -4,7 +4,7 @@ _luaversions="5.1 5.2 5.3"
pkgname=lua-socket
_name=luasocket
pkgver=3.0_rc1_git20160306
-pkgrel=0
+pkgrel=1
_ver=${pkgver%_git*}
_ver=${_ver/_rc/-rc}
pkgdesc="Networking library for Lua"
@@ -25,28 +25,27 @@ source="luasocket-$_ver.tar.gz::https://github.com/diegonehab/luasocket/archive/
"
# default_prepare assumes $_builddir
-_builddir="$srcdir/$_name-$_ver"
+builddir="$srcdir/$_name-$_ver"
prepare() {
default_prepare
for _i in $_luaversions; do
- cp -r "$_builddir" "$srcdir"/build-$_i
- # set lua version
- sed -i -e "/^LUAV?=/s/=.*/=$_i/" \
- "$srcdir"/build-$_i/src/makefile || return 1
+ cp -r "$builddir" "$srcdir"/build-$_i
done
}
build() {
for _i in $_luaversions; do
- make -C "$srcdir"/build-$_i/src all-unix || return 1
+ make -C "$srcdir"/build-$_i/src LUAV=$_i \
+ all-unix || return 1
done
}
package() {
for _i in $_luaversions; do
cd "$srcdir"/build-$_i
- make prefix=/usr DESTDIR="$pkgdir" install-unix || return 1
+ make prefix=/usr DESTDIR="$pkgdir" LUAV=$_i \
+ install-unix || return 1
done
}