summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--user/rubberband/APKBUILD34
-rw-r--r--user/rubberband/no-jni.patch15
2 files changed, 49 insertions, 0 deletions
diff --git a/user/rubberband/APKBUILD b/user/rubberband/APKBUILD
new file mode 100644
index 000000000..4bbe58f6c
--- /dev/null
+++ b/user/rubberband/APKBUILD
@@ -0,0 +1,34 @@
+# Contributor: Kiyoshi Aman <kiyoshi.aman+adelie@gmail.com>
+# Maintainer: Kiyoshi Aman <kiyoshi.aman+adelie@gmail.com>
+pkgname=rubberband
+pkgver=1.8.2
+pkgrel=0
+pkgdesc="Library for audio time-stretching and pitch-shifting"
+url="https://www.breakfastquay.com/rubberband/"
+arch="all"
+options="!check" # no tests
+license="BSD-4-Clause AND BSD-3-Clause AND GPL-2.0+"
+makedepends="libsamplerate-dev libsndfile-dev fftw-dev vamp-sdk-dev ladspa-dev"
+subpackages="$pkgname-dev"
+source="https://breakfastquay.com/files/releases/rubberband-$pkgver.tar.bz2
+ no-jni.patch"
+
+build() {
+ cd "$builddir"
+ ./configure \
+ --build=$CBUILD \
+ --host=$CHOST \
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ --mandir=/usr/share/man \
+ --localstatedir=/var
+ make
+}
+
+package() {
+ cd "$builddir"
+ make DESTDIR="$pkgdir" install
+}
+
+sha512sums="da677f9a843711c44c52c0153faa62e587ac7c010569523ef4fef7ce941b9d292e566f46147700e496f6cfff4c9f22f9901dcc93f2d701fdb9de152ddac0c3a6 rubberband-1.8.2.tar.bz2
+6c64a6220e68865dece4efe93131f7b5c99ae6a4ce094d7e8cf4805f64c3012edbf35bd5c2bdbb07240d68036728baa9619dd8faa21f01393dc6b35bdfa4f152 no-jni.patch"
diff --git a/user/rubberband/no-jni.patch b/user/rubberband/no-jni.patch
new file mode 100644
index 000000000..82e08c970
--- /dev/null
+++ b/user/rubberband/no-jni.patch
@@ -0,0 +1,15 @@
+diff -Nurd rubberband-1.8.2/Makefile.in rubberband-1.8.2.new/Makefile.in
+--- rubberband-1.8.2/Makefile.in 2018-05-15 12:43:39.000000000 -0500
++++ rubberband-1.8.2.new/Makefile.in 2018-08-03 00:50:46.435326979 -0500
+@@ -179,11 +179,9 @@
+ cp $(STATIC_TARGET) $(DESTDIR)$(INSTALL_LIBDIR)
+ rm -f $(DESTDIR)$(INSTALL_LIBDIR)/$(LIBNAME)$(DYNAMIC_EXTENSION).$(DYNAMIC_ABI_VERSION)
+ rm -f $(DESTDIR)$(INSTALL_LIBDIR)/$(LIBNAME)$(DYNAMIC_EXTENSION)
+- rm -f $(DESTDIR)$(INSTALL_LIBDIR)/$(JNINAME)$(DYNAMIC_EXTENSION)
+ cp $(DYNAMIC_TARGET) $(DESTDIR)$(INSTALL_LIBDIR)/$(LIBNAME)$(DYNAMIC_EXTENSION).$(DYNAMIC_FULL_VERSION)
+ ln -s $(LIBNAME)$(DYNAMIC_EXTENSION).$(DYNAMIC_FULL_VERSION) $(DESTDIR)$(INSTALL_LIBDIR)/$(LIBNAME)$(DYNAMIC_EXTENSION).$(DYNAMIC_ABI_VERSION)
+ ln -s $(LIBNAME)$(DYNAMIC_EXTENSION).$(DYNAMIC_FULL_VERSION) $(DESTDIR)$(INSTALL_LIBDIR)/$(LIBNAME)$(DYNAMIC_EXTENSION)
+- cp -f $(JNI_TARGET) $(DESTDIR)$(INSTALL_LIBDIR)/$(JNINAME)$(DYNAMIC_EXTENSION)
+ cp $(VAMP_TARGET) $(DESTDIR)$(INSTALL_VAMPDIR)
+ cp vamp/vamp-rubberband.cat $(DESTDIR)$(INSTALL_VAMPDIR)
+ cp $(LADSPA_TARGET) $(DESTDIR)$(INSTALL_LADSPADIR)