aboutsummaryrefslogtreecommitdiff
path: root/development/lua51/lua51.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'development/lua51/lua51.SlackBuild')
-rw-r--r--development/lua51/lua51.SlackBuild10
1 files changed, 5 insertions, 5 deletions
diff --git a/development/lua51/lua51.SlackBuild b/development/lua51/lua51.SlackBuild
index 6fb1927a8753..3646bf4459f0 100644
--- a/development/lua51/lua51.SlackBuild
+++ b/development/lua51/lua51.SlackBuild
@@ -12,12 +12,14 @@
# Granted WTFPL, Version 2, as published by Sam Hocevar. See
# http://sam.zoy.org/wtfpl/COPYING for more details.
+# 20241104 bkw: BUILD=2, fix doubleplusungood refs lib64 in .pc file.
+
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=lua51
SRCNAM=lua
VERSION=${VERSION:-5.1.5}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -67,11 +69,9 @@ PKGDOC=$PKG/usr/doc/$PRGNAM-$VERSION
PKGMAN1=$PKG/usr/man/man1
PKGINC=$PKG/usr/include
-# Fix up a to-be-installed header and the pkgconfig file
+# Fix up a to-be-installed header.
sed -i "s|/usr/local|/usr|" src/luaconf.h
sed -i "s|lib/lua|$LIB/lua|" src/luaconf.h
-sed -i "s|/usr/local|/usr|" etc/lua.pc
-sed -i "s|prefix}/lib|prefix}/$LIB|g" etc/lua.pc
runmake() {
make $1 \
@@ -113,7 +113,7 @@ cd ..
# and install the pkgconfig file
mkdir -p $PKGLIB/pkgconfig
-cat $CWD/lua51.pc > $PKGLIB/pkgconfig/lua51.pc
+sed "s,\<lib\>,$LIB,g" < $CWD/lua51.pc > $PKGLIB/pkgconfig/lua51.pc
ln -s lua51.pc $PKGLIB/pkgconfig/lua$V.pc
mkdir -p $PKGDOC/{extras,html}