diff options
Diffstat (limited to 'main/lua-socket/APKBUILD')
-rw-r--r-- | main/lua-socket/APKBUILD | 15 |
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 } |