mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-05-04 20:06:43 +02:00
main/lua-socket: upgrade to git snapshot for lua 5.3 support
This commit is contained in:
parent
1138dee508
commit
ef41e80032
@ -1,11 +1,12 @@
|
||||
# Contributor: Mika Havela <mika.havela@gmail.com>
|
||||
# Maintainer: Mika Havela <mika.havela@gmail.com>
|
||||
_luaversions="5.1 5.2"
|
||||
_luaversions="5.1 5.2 5.3"
|
||||
pkgname=lua-socket
|
||||
_name=luasocket
|
||||
pkgver=3.0_rc1
|
||||
pkgver=3.0_rc1_git20150301
|
||||
pkgrel=0
|
||||
_ver=${pkgver/_/-}
|
||||
_ver=${pkgver%_git*}
|
||||
_ver=${_ver/_rc/-rc}
|
||||
pkgdesc="Networking library for Lua"
|
||||
url="http://luaforge.net/projects/luasocket/"
|
||||
arch="all"
|
||||
@ -19,8 +20,10 @@ for _i in $_luaversions; do
|
||||
subpackages="$subpackages lua$_i-socket:split_${_i/./_}"
|
||||
done
|
||||
source="luasocket-$_ver.tar.gz::https://github.com/diegonehab/luasocket/archive/v$_ver.tar.gz
|
||||
git.patch
|
||||
lua-cflags.patch
|
||||
include-luasocket.patch"
|
||||
include-luasocket.patch
|
||||
"
|
||||
|
||||
_sdir="$srcdir/$_name-$_ver"
|
||||
|
||||
@ -59,6 +62,7 @@ package() {
|
||||
_split() {
|
||||
local d= _ver=$1
|
||||
pkgdesc="Networking library for Lua $_ver"
|
||||
install_if="lua$_ver $pkgname=$pkgver-r$pkgrel"
|
||||
replaces="$pkgname"
|
||||
depends=
|
||||
for d in usr/lib/lua usr/share/lua; do
|
||||
@ -74,11 +78,14 @@ for _i in $_luaversions; do
|
||||
done
|
||||
|
||||
md5sums="08bd2f265b244eb4bf5c2c36bf89b759 luasocket-3.0-rc1.tar.gz
|
||||
f869d0f81e347291405fb53dff9a408a lua-cflags.patch
|
||||
2e14aba126cec984e1824a4da35d45f8 git.patch
|
||||
8adb3bb6f4c6f63de8c56412ef623953 lua-cflags.patch
|
||||
4bcbbc8d3383db94223155fc7a6d454e include-luasocket.patch"
|
||||
sha256sums="8b67d9b5b545e1b694753dab7bd6cdbc24c290f2b21ba1e14c77b32817ea1249 luasocket-3.0-rc1.tar.gz
|
||||
bbcead4850fcdf6711c70b48db4db17e06fedcae45c4c53fd814ff6f0d9fe4ce lua-cflags.patch
|
||||
d64d35ba14a8b1381c20273d1390ee7c170b4ff566ad503621cac9f4c129bbb8 git.patch
|
||||
e5d38d3b1484b61ab43627efdc302f78c24733aa2d422e6745fe273b1a56d94b lua-cflags.patch
|
||||
42b1a439805efaf33110e01a53798b3e8d044101470808fe9478ca3be0ae5165 include-luasocket.patch"
|
||||
sha512sums="f6efce259aaacaa11472911471f8a13b118fe009b8953a82c6aa18b9ec829cd1293180904e56935cb130d36d267e3f27c91db2d78e03f7488f3e100571ed0540 luasocket-3.0-rc1.tar.gz
|
||||
58b5d3c239c8be1561060f75bf849bcfa9022626995a5234ec741dc2ae86755d9fed88c12b5644c914c604ea31b017a6679ac33a9a76392242faf139bfd59de1 lua-cflags.patch
|
||||
85a6dc3b8e674200a2928f397fcb7fb9ca0e41870d5628c9c24aabc140d8fa14c12576cfa6e8bef687ab914d378585557b9a2f3bf09173a003d51f7f8e2a0d34 git.patch
|
||||
9a155e11e117b9f0485899951051a61d21cdc088d3a5e1ec0e2d018cb257b6edaaf342f5f5304cb229160247ced5ff0fe825f880cb695a201295b4399546de84 lua-cflags.patch
|
||||
34db925f9e9a1a629d01dc26072f4edec77087f7bf89dda8140326447662efbc53ce5e36087fa9127d708d498c129613f7ed82862dd3176df16796418868548d include-luasocket.patch"
|
||||
|
||||
1559
main/lua-socket/git.patch
Normal file
1559
main/lua-socket/git.patch
Normal file
File diff suppressed because it is too large
Load Diff
@ -1,6 +1,6 @@
|
||||
--- ./src/makefile.orig 2013-07-09 14:20:08.772827698 +0000
|
||||
+++ ./src/makefile 2013-07-09 14:22:46.311231590 +0000
|
||||
@@ -142,6 +142,8 @@
|
||||
--- src/makefile.orig
|
||||
+++ ./src/makefile
|
||||
@@ -156,6 +156,8 @@
|
||||
#------
|
||||
# Compiler and linker settings
|
||||
# for Linux
|
||||
@ -9,12 +9,12 @@
|
||||
SO_linux=so
|
||||
O_linux=o
|
||||
CC_linux=gcc
|
||||
@@ -149,7 +151,7 @@
|
||||
@@ -163,7 +165,7 @@
|
||||
-DLUASOCKET_API='__attribute__((visibility("default")))' \
|
||||
-DUNIX_API='__attribute__((visibility("default")))' \
|
||||
-DMIME_API='__attribute__((visibility("default")))'
|
||||
-CFLAGS_linux= -I$(LUAINC) $(DEF) -pedantic -Wall -Wshadow -Wextra \
|
||||
+CFLAGS_linux= $(LUA_CFLAGS) -I$(LUAINC) $(DEF) -pedantic -Wall -Wshadow -Wextra \
|
||||
-CFLAGS_linux= -I$(LUAINC) $(DEF) -Wall -Wshadow -Wextra \
|
||||
+CFLAGS_linux= $(LUA_CFLAGS) -I$(LUAINC) $(DEF) -Wall -Wshadow -Wextra \
|
||||
-Wimplicit -O2 -ggdb3 -fpic -fvisibility=hidden
|
||||
LDFLAGS_linux=-O -shared -fpic -o
|
||||
LD_linux=gcc
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user