[arch-commits] Commit in pd-lua/trunk (PKGBUILD pd-lua-0.9-lua53.patch)

David Runge dvzrv at archlinux.org
Thu Jul 9 10:20:58 UTC 2020


    Date: Thursday, July 9, 2020 @ 10:20:57
  Author: dvzrv
Revision: 661804

upgpkg: pd-lua 0.9-3: Rebuilding against lua53.

Upstream is not able (yet) to build against lua >= 5.4.
Adding patch for building against lua53.
Updating maintainer info.

Added:
  pd-lua/trunk/pd-lua-0.9-lua53.patch
Modified:
  pd-lua/trunk/PKGBUILD

------------------------+
 PKGBUILD               |   18 +++++++++++++-----
 pd-lua-0.9-lua53.patch |   28 ++++++++++++++++++++++++++++
 2 files changed, 41 insertions(+), 5 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-07-09 09:46:10 UTC (rev 661803)
+++ PKGBUILD	2020-07-09 10:20:57 UTC (rev 661804)
@@ -1,15 +1,20 @@
-# Maintainer: David Runge <dave at sleepmap.de>
+# Maintainer: David Runge <dvzrv at archlinux.org>
+
 pkgname=pd-lua
 pkgver=0.9
-pkgrel=2
+pkgrel=3
 pkgdesc="LUA embedding for pd"
 arch=('x86_64')
 url="https://github.com/agraef/pd-lua"
 license=('GPL2')
 groups=('pd-externals' 'pro-audio')
-depends=('lua' 'pd')
-source=("$pkgname-$pkgver.tar.gz::https://github.com/agraef/${pkgname}/archive/${pkgver}.tar.gz")
-sha512sums=('edcb4a9e65ca4a5816e0ad326946af74771edf163925ce5e0f71371ffff3cae8386c4d2b696c9f815859bb38105af7d6118425cdf797c89498962d58ff0f7233')
+depends=('gcc-libs' 'glibc' 'lua53' 'pd')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/agraef/${pkgname}/archive/${pkgver}.tar.gz"
+        "${pkgname}-0.9-lua53.patch")
+sha512sums=('edcb4a9e65ca4a5816e0ad326946af74771edf163925ce5e0f71371ffff3cae8386c4d2b696c9f815859bb38105af7d6118425cdf797c89498962d58ff0f7233'
+            'b48030d03386334c8efa112e11aca661cad15000d8dc5d9c150aaef35f4e489eb6f0eaa4cf73fc5e123135be6d86288db4c19f61267678d7147dc5ad946dea8b')
+b2sums=('e836f11ca67dcc9ab2633fe599c8c094563f5284c54744584fdd24005c82669a424e3278e3595a79207228d2856c8663bbd2cd4bbc29493b5319c22df58c0384'
+        '0940a21fc9968cde07d1d2e9efc25077733706788e8ab5182afbd4d9b38da55c6f200a7ac0ad4f73fc99a80b2488b6b706f1da9ab0ca7dcd711b3b3a09abf9d3')
 
 prepare() {
   cd "$pkgname-$pkgver"
@@ -19,6 +24,9 @@
       -e '/COPYING /d' \
       -e '/README /d' \
       -i Makefile
+  # building against lua53 due to issues with lua >= 5.4
+  # https://github.com/agraef/pd-lua/issues/7
+  patch -Np1 -i "../${pkgname}-0.9-lua53.patch"
 }
 
 build() {

Added: pd-lua-0.9-lua53.patch
===================================================================
--- pd-lua-0.9-lua53.patch	                        (rev 0)
+++ pd-lua-0.9-lua53.patch	2020-07-09 10:20:57 UTC (rev 661804)
@@ -0,0 +1,28 @@
+diff -ruN a/Makefile b/Makefile
+--- a/Makefile	2018-03-07 16:42:09.000000000 +0100
++++ b/Makefile	2020-07-09 12:15:56.182015666 +0200
+@@ -62,7 +62,7 @@
+ LIBS =
+ 
+ LUA_CFLAGS = -I/usr/include/lua
+-LUA_LIBS   = -llua
++LUA_LIBS   = $(shell pkg-config --libs lua-5.3)
+ 
+ # get library version from meta file
+ LIBRARY_VERSION = $(shell sed -n 's|^\#X text [0-9][0-9]* [0-9][0-9]* VERSION \(.*\);|\1|p' $(LIBRARY_META))
+diff -ruN a/pdlua.c b/pdlua.c
+--- a/pdlua.c	2018-03-07 16:42:09.000000000 +0100
++++ b/pdlua.c	2020-07-09 12:10:25.631400140 +0200
+@@ -42,9 +42,9 @@
+ #include <unistd.h>
+ #endif
+ /* we use Lua */
+-#include <lua.h>
+-#include <lauxlib.h>
+-#include <lualib.h>
++#include <lua5.3/lua.h>
++#include <lua5.3/lauxlib.h>
++#include <lua5.3/lualib.h>
+ 
+ /* we use Pd */
+ #include "m_pd.h"



More information about the arch-commits mailing list