summaryrefslogtreecommitdiff
path: root/user/lua-socket/APKBUILD
diff options
context:
space:
mode:
authorSíle Ekaterin Liszka <sheila@vulpine.house>2023-03-25 17:34:30 +0000
committerA. Wilcox <awilcox@wilcox-tech.com>2023-03-31 05:35:55 +0000
commit822e8620d40597a3388f75fc098712903400128a (patch)
tree0b68f28c87944a6b3903942f80bfb8c0a5294377 /user/lua-socket/APKBUILD
parent3180eb62adf79aeede642e0f94e2307c14f27f1a (diff)
downloadpackages-822e8620d40597a3388f75fc098712903400128a.tar.gz
packages-822e8620d40597a3388f75fc098712903400128a.tar.bz2
packages-822e8620d40597a3388f75fc098712903400128a.tar.xz
packages-822e8620d40597a3388f75fc098712903400128a.zip
user/lua-socket: upgrade to 3.1.0
Diffstat (limited to 'user/lua-socket/APKBUILD')
-rw-r--r--user/lua-socket/APKBUILD35
1 files changed, 15 insertions, 20 deletions
diff --git a/user/lua-socket/APKBUILD b/user/lua-socket/APKBUILD
index e2235310d..a9c0f7af0 100644
--- a/user/lua-socket/APKBUILD
+++ b/user/lua-socket/APKBUILD
@@ -1,38 +1,33 @@
# Contributor: Mika Havela <mika.havela@gmail.com>
# Maintainer: Síle Ekaterin Liszka <sheila@vulpine.house>
pkgname=lua-socket
-_name=luasocket
-pkgver=3.0_rc1_git20160306
+_pkgname=luasocket
+pkgver=3.1.0
pkgrel=0
-_ver=${pkgver%_git*}
-_ver=$(printf '%s' "$_ver" | sed 's/_rc/-rc/')
+_luaver=5.3
+_socketver=3.0.0
+_mimever=1.0.3
pkgdesc="Networking library for Lua"
-url="http://luaforge.net/projects/luasocket/"
+url="https://lunarmodules.github.io/luasocket/"
arch="all"
license="MIT"
-depends="lua5.3"
-makedepends="lua5.3-dev"
-source="luasocket-$_ver.tar.gz::https://github.com/diegonehab/luasocket/archive/v$_ver.tar.gz
- git.patch
- lua-cflags.patch
- 0001-Create-socket-on-first-sendto-if-family-agnostic-udp.patch"
-builddir="$srcdir/$_name-$_ver"
+depends="lua$_luaver"
+makedepends="lua$_luaver-dev"
+source="$pkgname-$pkgver.tar.gz::https://github.com/lunarmodules/luasocket/archive/refs/tags/v$pkgver.tar.gz"
+builddir="$srcdir/$_pkgname-$pkgver"
build() {
- make LUAV=""
+ make linux prefix=/usr LUAV="$_luaver"
}
check() {
- mkdir -p src/socket && cp src/socket-$_ver.so src/socket/core.so
- mkdir -p src/mime && cp src/mime-1.0.3.so src/mime/core.so
+ cp src/socket-$_socketver.so src/socket.so
+ cp src/mime-$_mimever.so src/mime.so
LUA_CPATH=./src/?.so LUA_PATH="./src/?.lua;;" lua test/hello.lua
}
package() {
- make prefix=/usr DESTDIR="$pkgdir" LUAV="5.3" install-unix
+ make prefix=/usr DESTDIR="$pkgdir" LUAV="$_luaver" install-unix
}
-sha512sums="f6efce259aaacaa11472911471f8a13b118fe009b8953a82c6aa18b9ec829cd1293180904e56935cb130d36d267e3f27c91db2d78e03f7488f3e100571ed0540 luasocket-3.0-rc1.tar.gz
-45c80e488fedc879f0217bc8a654d80da003039f5d1ff21b0dea0eb769151787dbe793e44a3dfd72cb07ff2697eceaf4fc7b55b4634cd170fa71281f19f025a5 git.patch
-61c15238a2f116b7239fdbdb8f617c82dbbecd0117c6e8389b12015bf07f3978299a8e8995e93a45a23530c747662b08d161073cdb6a8e07c4f449e45856e8cb lua-cflags.patch
-c45a12e17771a1b3b71154b5415421f524cd10b7969b4649a5f37b652cdc826721e117edb8fe64758d3520e59946e2f755b814f72cbb39ff42bf59bbcf9a64e9 0001-Create-socket-on-first-sendto-if-family-agnostic-udp.patch"
+sha512sums="1e9e98484740ec6538fe3d2b0dab74d31f052956ecf9ee3b60e229f2d0b13fcc6d4aaf74cd2a3e2ee330333dabb316fe6a43c60baaea26f0cc01069b6aa4519b lua-socket-3.1.0.tar.gz"