[arch-commits] Commit in portmidi/trunk (PKGBUILD pmdefaults.sh)

David Runge dvzrv at archlinux.org
Thu Aug 8 20:43:15 UTC 2019


    Date: Thursday, August 8, 2019 @ 20:43:15
  Author: dvzrv
Revision: 359339

upgpkg: portmidi 217-8

Adding libpmjni.so, libportmidi.so and libporttime.so to provides. Pinning java-runtime with custom launcher script (portmidi doesn't specify its language level properly and therefore will only work with the same version of jre/jdk. Adding sh to optdepends for pmdefaults.

Added:
  portmidi/trunk/pmdefaults.sh
Modified:
  portmidi/trunk/PKGBUILD

---------------+
 PKGBUILD      |   13 ++++++++++---
 pmdefaults.sh |    5 +++++
 2 files changed, 15 insertions(+), 3 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2019-08-08 20:09:20 UTC (rev 359338)
+++ PKGBUILD	2019-08-08 20:43:15 UTC (rev 359339)
@@ -3,17 +3,21 @@
 
 pkgname=portmidi
 pkgver=217
-pkgrel=7
+pkgrel=8
 pkgdesc="Platform independent library for real-time MIDI input/output"
 arch=('x86_64')
 url="http://portmedia.sourceforge.net/"
 license=('MIT')
 depends=('alsa-lib')
-makedepends=('cmake' 'jdk8-openjdk')
-optdepends=('java-runtime: for using pmdefaults')
+makedepends=('cmake' 'java-environment=12')
+optdepends=('java-runtime=12: for using pmdefaults'
+            'sh: for using pmdefaults')
+provides=('libpmjni.so' 'libportmidi.so' 'libporttime.so')
 source=("https://downloads.sourceforge.net/project/portmedia/${pkgname}/${pkgver}/${pkgname}-src-${pkgver}.zip"
+        'pmdefaults.sh'
         'portmidi-217-build-fix.patch')
 sha512sums=('d08d4d57429d26d292b5fe6868b7c7a32f2f1d2428f6695cd403a697e2d91629bd4380242ab2720e8f21c895bb75cb56b709fb663a20e8e623120e50bfc5d90b'
+            '83e2f93b084d2068980947f399b44efd02efd6d466b604b1f9ea3c0ba8e1abd90108efff3648992d63c0f710f816933c03953a4a2930050c8627cce14cbc7ad3'
             '643d249d53780519c9773c88974a34127ba64982ed75d2d0f55e99faf3bb7c8c97ba185412e70794319c8253de659b8658de95a8eb6fbfa3648c1be384bafbc1')
 
 prepare() {
@@ -41,6 +45,9 @@
   cd "${pkgname}-${pkgver}"
   make DESTDIR="${pkgdir}" install
 
+  # install custom launcher script, so java-runtime can be pinned
+  install -vDm 755 ../pmdefaults.sh "${pkgdir}/usr/bin/pmdefaults"
+
   # Fix missing symlink for libporttime.so (FS#21528).
   ln -s libportmidi.so "${pkgdir}/usr/lib/libporttime.so"
 

Added: pmdefaults.sh
===================================================================
--- pmdefaults.sh	                        (rev 0)
+++ pmdefaults.sh	2019-08-08 20:43:15 UTC (rev 359339)
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+export PATH="/usr/lib/jvm/java-12-openjdk/bin/:${PATH}"
+
+java -jar /usr/share/java/pmdefaults.jar > /dev/null


More information about the arch-commits mailing list