[arch-commits] Commit in rubberband/repos/community-x86_64 (PKGBUILD PKGBUILD)

David Runge dvzrv at archlinux.org
Tue Jun 18 14:41:41 UTC 2019


    Date: Tuesday, June 18, 2019 @ 14:41:40
  Author: dvzrv
Revision: 482165

archrelease: copy trunk to community-x86_64

Added:
  rubberband/repos/community-x86_64/PKGBUILD
    (from rev 482164, rubberband/trunk/PKGBUILD)
Deleted:
  rubberband/repos/community-x86_64/PKGBUILD

----------+
 PKGBUILD |   74 ++++++++++++++++++++++++++++++-------------------------------
 1 file changed, 37 insertions(+), 37 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2019-06-18 14:41:33 UTC (rev 482164)
+++ PKGBUILD	2019-06-18 14:41:40 UTC (rev 482165)
@@ -1,37 +0,0 @@
-# $Id$
-# Maintainer: David Runge <dave at sleepmap.de>
-# Contributor: Ray Rashif <schiv at archlinux.org>
-# Contributor: Felipe Machado aka arch_audio <machado.felipe at gmail.com>
-
-pkgname=rubberband
-pkgver=1.8.2
-pkgrel=1
-pkgdesc="Time-stretching and pitch-shifting audio library and utility"
-arch=('x86_64')
-url="https://www.breakfastquay.com/rubberband/"
-license=('GPL2')
-depends=('libsamplerate' 'fftw' 'vamp-plugin-sdk')
-makedepends=('ladspa' 'java-environment=10')
-source=("$pkgname-$pkgver.tar.gz::https://github.com/breakfastquay/rubberband/archive/v$pkgver.tar.gz")
-sha512sums=('b70e41fb1f68487d67b3935682100138ba898adeec9c8e7f8caa30f7bc94389c847d72a1b0b04f042d16d4b57019cc82c0fe79c8f302c3174e603e9bd0289abf')
-
-prepare() {
-  cd "$pkgname-$pkgver"
-  autoreconf -vfi
-}
-
-build() {
-  cd "$pkgname-$pkgver"
-  ./configure --prefix=/usr
-  make
-  export JAVA_HOME=/usr/lib/jvm/java-10-openjdk
-  make jni
-}
-
-package() {
-  cd "$pkgname-$pkgver"
-  make DESTDIR="$pkgdir" install
-  # docs
-  install -vDm 644 {CHANGELOG,README.txt} \
-    -t "${pkgdir}/usr/share/doc/${pkgname}/"
-}

Copied: rubberband/repos/community-x86_64/PKGBUILD (from rev 482164, rubberband/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2019-06-18 14:41:40 UTC (rev 482165)
@@ -0,0 +1,37 @@
+# Maintainer: David Runge <dave at sleepmap.de>
+# Contributor: Ray Rashif <schiv at archlinux.org>
+# Contributor: Felipe Machado aka arch_audio <machado.felipe at gmail.com>
+
+pkgname=rubberband
+pkgver=1.8.2
+pkgrel=2
+pkgdesc="Time-stretching and pitch-shifting audio library and utility"
+arch=('x86_64')
+url="https://www.breakfastquay.com/rubberband/"
+license=('GPL2')
+depends=('libsamplerate' 'fftw' 'vamp-plugin-sdk')
+makedepends=('ladspa' 'java-environment')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/breakfastquay/rubberband/archive/v$pkgver.tar.gz")
+sha512sums=('b70e41fb1f68487d67b3935682100138ba898adeec9c8e7f8caa30f7bc94389c847d72a1b0b04f042d16d4b57019cc82c0fe79c8f302c3174e603e9bd0289abf')
+
+prepare() {
+  cd "$pkgname-$pkgver"
+  autoreconf -vfi
+}
+
+build() {
+  local java_major=$(java --version 2>/dev/null |grep 'openjdk'| cut -d ' ' -f2| cut -d '.' -f1)
+  export JAVA_HOME="/usr/lib/jvm/java-${java_major}-openjdk"
+  cd "$pkgname-$pkgver"
+  ./configure --prefix=/usr
+  make
+  make jni
+}
+
+package() {
+  cd "$pkgname-$pkgver"
+  make DESTDIR="$pkgdir" install
+  # docs
+  install -vDm 644 {CHANGELOG,README.txt} \
+    -t "${pkgdir}/usr/share/doc/${pkgname}/"
+}


More information about the arch-commits mailing list