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

David Runge dvzrv at gemini.archlinux.org
Thu Nov 18 23:22:04 UTC 2021


    Date: Thursday, November 18, 2021 @ 23:22:04
  Author: dvzrv
Revision: 1052733

archrelease: copy trunk to community-staging-x86_64

Added:
  giada/repos/community-staging-x86_64/
  giada/repos/community-staging-x86_64/PKGBUILD
    (from rev 1052732, giada/trunk/PKGBUILD)
  giada/repos/community-staging-x86_64/giada-0.19.0-devendor_nlohmann_json.patch
    (from rev 1052732, giada/trunk/giada-0.19.0-devendor_nlohmann_json.patch)

-------------------------------------------+
 PKGBUILD                                  |   72 ++++++++++++++++++++++++++++
 giada-0.19.0-devendor_nlohmann_json.patch |   45 +++++++++++++++++
 2 files changed, 117 insertions(+)

Copied: giada/repos/community-staging-x86_64/PKGBUILD (from rev 1052732, giada/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2021-11-18 23:22:04 UTC (rev 1052733)
@@ -0,0 +1,72 @@
+# Maintainer: David Runge <dvzrv at archlinux.org>
+
+pkgname=giada
+pkgver=0.19.0
+pkgrel=2
+pkgdesc="A free, minimal, hardcore audio tool for DJs, live performers and electronic musicians"
+arch=(x86_64)
+url="https://www.giadamusic.com/"
+license=(GPL3)
+groups=(pro-audio)
+depends=(gcc-libs glibc hicolor-icon-theme libx11 libxcursor libxft
+libxinerama libxpm)
+# upstream vendors a hacked rtaudio :(
+makedepends=(alsa-lib catch2 cmake fltk imagemagick jack libpulse
+libsamplerate libsndfile libxrandr nlohmann-json rtmidi)
+checkdepends=(xorg-server-xvfb)
+provides=(vst3-host)
+source=(
+  "https://www.giadamusic.com/data/${pkgname}-v${pkgver}-src.tar.gz"
+  "${pkgname}-0.19.0-xdg_icon.patch::https://github.com/monocasual/giada/pull/524/commits/e3e55b9d041cec5938edfae73d627aa5b458633d.patch"
+  "$pkgname-0.19.0-devendor_nlohmann_json.patch"
+)
+sha512sums=('da5e4f319a36db316fbbeb66e2b4153412c73a6bc62672df1c3405aaa6ea11867825e0bf2ec60b2f5b51e5c75630b4bf1f74ecf5228b847c832fdfca5c35dca7'
+            '0ff136460d52a8561b665fc3beebbaa44914b4f0493d6847971093ac40d98fad2b25b23189a7ab023d9542f64691d9195956dbe68b0dadc3f9d77381769c4ef1'
+            '4a6be28c0ba1656e4ce63504c031d6a89ae5fdf10a5652021e5a248e3202526095d097cf1337adf03efa7f618a485aadeb5b6024f15950a7b72cd23ad8cd97d6')
+b2sums=('3ad01405dc02d137ff15043d0e89b75a585c925ed830a797f065d572e0a11379856542c4292fa52640208d8d0e2dbee7ccb42a0910ef70c5bb641f4a80126fcf'
+        '5e8ba847bda8734b11a37b3179eaf512a8bf2956fa0cba01ad2113575a9f7d79eb0863e550da0a80a2c81ecb06762b0d11ced379fda35d60e2cc44ed2514a159'
+        '41fce95d1df10e78c080553184bb078abe30eec7ca85b9d3883ffd2191e4b51decee9c946f0b1aa10852e054c28a4e5f8bde62d4f0093d95e6197df464f61e59')
+
+prepare() {
+  mv -v "$pkgname-$pkgver-src" "$pkgname-$pkgver"
+  cd "$pkgname-$pkgver"
+  # devendor nlohmann-json
+  patch -Np1 -i ../"$pkgname-0.19.0-devendor_nlohmann_json.patch"
+  # fix XDG icon name: https://github.com/monocasual/giada/pull/524
+  patch -Np1 -i ../"${pkgname}-0.19.0-xdg_icon.patch"
+}
+
+build() {
+  cd "$pkgname-$pkgver"
+  cmake -DCMAKE_INSTALL_PREFIX=/usr \
+        -DCMAKE_BUILD_TYPE='None' \
+        -DWITH_VST3=ON \
+        -W no-dev \
+        -B build \
+        -S .
+  cmake -DCMAKE_INSTALL_PREFIX=/usr \
+        -DCMAKE_BUILD_TYPE='None' \
+        -DWITH_VST3=ON \
+        -DWITH_TESTS=ON \
+        -W no-dev \
+        -B build-test \
+        -S .
+  make VERBOSE=1 -C build
+  make VERBOSE=1 -C build-test
+}
+
+check(){
+  cd "$pkgname-$pkgver"
+  xvfb-run ./build-test/giada --run-tests
+}
+
+package() {
+  depends+=(libasound.so libfreetype.so libjack.so libpulse.so
+  libpulse-simple.so librtmidi.so libsamplerate.so libsndfile.so)
+
+  cd "$pkgname-$pkgver"
+  make DESTDIR="$pkgdir/" install -C build
+  # docs
+  install -vDm 644 {ChangeLog,README.md} \
+    -t "${pkgdir}/usr/share/doc/${pkgname}"
+}

Copied: giada/repos/community-staging-x86_64/giada-0.19.0-devendor_nlohmann_json.patch (from rev 1052732, giada/trunk/giada-0.19.0-devendor_nlohmann_json.patch)
===================================================================
--- community-staging-x86_64/giada-0.19.0-devendor_nlohmann_json.patch	                        (rev 0)
+++ community-staging-x86_64/giada-0.19.0-devendor_nlohmann_json.patch	2021-11-18 23:22:04 UTC (rev 1052733)
@@ -0,0 +1,45 @@
+diff -ruN a/src/core/conf.cpp b/src/core/conf.cpp
+--- a/src/core/conf.cpp	2021-11-06 21:07:22.000000000 +0100
++++ b/src/core/conf.cpp	2021-11-11 18:59:02.203649393 +0100
+@@ -27,9 +27,9 @@
+ #include "core/conf.h"
+ #include "core/const.h"
+ #include "core/types.h"
+-#include "deps/json/single_include/nlohmann/json.hpp"
+ #include "utils/fs.h"
+ #include "utils/log.h"
++#include <nlohmann/json.hpp>
+ #include <FL/Fl.H>
+ #include <cassert>
+ #include <fstream>
+@@ -296,4 +296,4 @@
+ 	data.channelsInCount  = std::max(1, data.channelsInCount);
+ 	data.channelsInStart  = std::max(0, data.channelsInStart);
+ }
+-} // namespace giada::m
+\ No newline at end of file
++} // namespace giada::m
+diff -ruN a/src/core/midiMapper.h b/src/core/midiMapper.h
+--- a/src/core/midiMapper.h	2021-11-06 21:07:22.000000000 +0100
++++ b/src/core/midiMapper.h	2021-11-11 18:59:25.850387884 +0100
+@@ -27,7 +27,7 @@
+ #ifndef G_MIDIMAPPER_H
+ #define G_MIDIMAPPER_H
+ 
+-#include "deps/json/single_include/nlohmann/json.hpp"
++#include <nlohmann/json.hpp>
+ #include <string>
+ #include <vector>
+ 
+diff -ruN a/src/core/patch.cpp b/src/core/patch.cpp
+--- a/src/core/patch.cpp	2021-11-06 21:07:22.000000000 +0100
++++ b/src/core/patch.cpp	2021-11-11 18:59:48.867124522 +0100
+@@ -26,7 +26,7 @@
+ 
+ #include "patch.h"
+ #include "core/mixer.h"
+-#include "deps/json/single_include/nlohmann/json.hpp"
++#include <nlohmann/json.hpp>
+ #include "utils/log.h"
+ #include "utils/math.h"
+ #include <fstream>



More information about the arch-commits mailing list