[arch-commits] Commit in pd-lua/repos (3 files)

David Runge dvzrv at archlinux.org
Thu Jul 9 10:21:03 UTC 2020


    Date: Thursday, July 9, 2020 @ 10:21:03
  Author: dvzrv
Revision: 661805

archrelease: copy trunk to community-staging-x86_64

Added:
  pd-lua/repos/community-staging-x86_64/
  pd-lua/repos/community-staging-x86_64/PKGBUILD
    (from rev 661804, pd-lua/trunk/PKGBUILD)
  pd-lua/repos/community-staging-x86_64/pd-lua-0.9-lua53.patch
    (from rev 661804, pd-lua/trunk/pd-lua-0.9-lua53.patch)

------------------------+
 PKGBUILD               |   45 +++++++++++++++++++++++++++++++++++++++++++++
 pd-lua-0.9-lua53.patch |   28 ++++++++++++++++++++++++++++
 2 files changed, 73 insertions(+)

Copied: pd-lua/repos/community-staging-x86_64/PKGBUILD (from rev 661804, pd-lua/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2020-07-09 10:21:03 UTC (rev 661805)
@@ -0,0 +1,45 @@
+# Maintainer: David Runge <dvzrv at archlinux.org>
+
+pkgname=pd-lua
+pkgver=0.9
+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=('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"
+  # installing external to correct location
+  # not installing license and README (to wrong location)
+  sed -e 's/-externals/\/extra/' \
+      -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() {
+  cd "$pkgname-$pkgver"
+  make LDFLAGS="${LDFLAGS}" CFLAGS="${CFLAGS}"
+}
+
+package() {
+  cd "$pkgname-$pkgver"
+  make DESTDIR="$pkgdir/" prefix='/usr' install
+  # docs
+  install -vDm 644 README -t "${pkgdir}/usr/share/doc/${pkgname}"
+  mv -v "${pkgdir}/usr/lib/pd/extra/pdlua/doc/"* \
+    "${pkgdir}/usr/share/doc/${pkgname}"
+  rmdir -v "${pkgdir}/usr/lib/pd/extra/pdlua/doc/"
+}

Copied: pd-lua/repos/community-staging-x86_64/pd-lua-0.9-lua53.patch (from rev 661804, pd-lua/trunk/pd-lua-0.9-lua53.patch)
===================================================================
--- community-staging-x86_64/pd-lua-0.9-lua53.patch	                        (rev 0)
+++ community-staging-x86_64/pd-lua-0.9-lua53.patch	2020-07-09 10:21:03 UTC (rev 661805)
@@ -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