If my assumption is correct, I've attached patches to achieve the (I
think) correct output:

       $ pkg-config --libs lua52
       -llua5.2 -lm

       $ pkg-config --libs lua53
       -llua5.3 -lm

- Nate

-- 

"The optimist proclaims that we live in the best of all
possible worlds.  The pessimist fears this is true."

Web: http://www.n0nb.us  GPG key: D55A8819  GitHub: N0NB
diff --git a/development/lua52/lua52.SlackBuild 
b/development/lua52/lua52.SlackBuild
index 6b50862bc7..a0f9bc5829 100644
--- a/development/lua52/lua52.SlackBuild
+++ b/development/lua52/lua52.SlackBuild
@@ -123,6 +123,7 @@ cd $PKG/usr/lib${LIBDIRSUFFIX}/pkgconfig
     -e '/^INSTALL_CMOD= /s,lib,&'"${LIBDIRSUFFIX}"',' \
     -e '/^libdir=/s,/lib,&'"${LIBDIRSUFFIX}"',' \
     -e '/^includedir=/s,/include,&/lua\${V},' \
+    -e '/^Libs:/s,-llua,&${V},' \
     $CWD/lua.pc.in > lua$V.pc
   ln -s lua$V.pc lua-$V.pc
   ln -s lua$V.pc lua${V%.?}${V#?.}.pc
diff --git a/development/lua53/lua53.SlackBuild 
b/development/lua53/lua53.SlackBuild
index a4cb0dfefa..ccfc0a4ded 100644
--- a/development/lua53/lua53.SlackBuild
+++ b/development/lua53/lua53.SlackBuild
@@ -123,6 +123,7 @@ cd $PKG/usr/lib${LIBDIRSUFFIX}/pkgconfig
     -e '/^INSTALL_CMOD= /s,lib,&'"${LIBDIRSUFFIX}"',' \
     -e '/^libdir=/s,/lib,&'"${LIBDIRSUFFIX}"',' \
     -e '/^includedir=/s,/include,&/lua\${V},' \
+    -e '/^Libs:/s,-llua,&${V},' \
     $CWD/lua.pc.in > lua$V.pc
   ln -s lua$V.pc lua-$V.pc
   ln -s lua$V.pc lua${V%.?}${V#?.}.pc

Attachment: signature.asc
Description: PGP signature

_______________________________________________
SlackBuilds-users mailing list
SlackBuilds-users@slackbuilds.org
https://lists.slackbuilds.org/mailman/listinfo/slackbuilds-users
Archives - https://lists.slackbuilds.org/pipermail/slackbuilds-users/
FAQ - https://slackbuilds.org/faq/

Reply via email to