summaryrefslogtreecommitdiff
path: root/lua/Pkgfile
diff options
context:
space:
mode:
authorDanny Rawlins <monster.romster@gmail.com>2020-07-13 22:55:07 +1000
committerDanny Rawlins <monster.romster@gmail.com>2020-07-13 22:55:07 +1000
commit57aa613a4ba43158e1a2ee1a3cb057b7adcdf54b (patch)
treef9de87ac5e6659e0cd32a2ef34bc0cdf7dc350b5 /lua/Pkgfile
parent970f136f58bd9c6eca956071d4bb5503b401dd10 (diff)
downloadopt-57aa613a4ba43158e1a2ee1a3cb057b7adcdf54b.tar.gz
opt-57aa613a4ba43158e1a2ee1a3cb057b7adcdf54b.tar.xz
[notify] lua: 5.3.5 -> 5.4.0 ABI change check with revdep
Diffstat (limited to 'lua/Pkgfile')
-rw-r--r--lua/Pkgfile16
1 files changed, 6 insertions, 10 deletions
diff --git a/lua/Pkgfile b/lua/Pkgfile
index 96fe683a5..0d519c31b 100644
--- a/lua/Pkgfile
+++ b/lua/Pkgfile
@@ -4,7 +4,7 @@
# Depends on: readline
name=lua
-version=5.3.5
+version=5.4.0
release=1
source=(https://www.lua.org/ftp/$name-$version.tar.gz
liblua.so.patch lua.pc)
@@ -16,10 +16,7 @@ build() {
sed "s/%VER%/${version:0:3}/g;s/%REL%/$version/g" $SRC/lua.pc > lua.pc
- # Lua 5.3.4 has wrong release version in its Makefile. Fix it.
- sed "s/^R= \$V.4/R= \$V.5/" -i Makefile
-
- make MYCFLAGS="$CFLAGS -fPIC -DLUA_COMPAT_5_2 -DLUA_COMPAT_5_1" MYLDFLAGS="$LDFLAGS" linux
+ make MYCFLAGS="$CFLAGS -fPIC" MYLDFLAGS="$LDFLAGS" linux
make \
TO_LIB="liblua.a liblua.so liblua.so.${version:0:3} liblua.so.$version" \
@@ -28,13 +25,12 @@ build() {
INSTALL_MAN=$PKG/usr/share/man/man1 \
install
- # odd behaviour
- chmod -v u+w $PKG/usr/share/man/man1/lua.1
-
ln -s lua $PKG/usr/bin/lua${version:0:3}
ln -s luac $PKG/usr/bin/luac${version:0:3}
ln -s liblua.so.$version $PKG/usr/lib/liblua${version:0:3}.so
- install -m 0644 -D lua.pc $PKG/usr/lib/pkgconfig/lua53.pc
- ln -s lua53.pc $PKG/usr/lib/pkgconfig/lua.pc
+ install -m 0644 -D lua.pc $PKG/usr/lib/pkgconfig/lua${version:0:1}${version:2:1}.pc
+ ln -s lua${version:0:1}${version:2:1}.pc $PKG/usr/lib/pkgconfig/lua.pc
+ ln -s lua${version:0:1}${version:2:1}.pc $PKG/usr/lib/pkgconfig/lua${version:0:3}.pc
+ ln -s lua${version:0:1}${version:2:1}.pc $PKG/usr/lib/pkgconfig/lua-${version:0:3}.pc
}

Generated by cgit