diff options
author | Jean-Michaël Celerier | 2024-02-25 22:54:20 -0500 |
---|---|---|
committer | Jean-Michaël Celerier | 2024-02-25 22:54:24 -0500 |
commit | 312ea691d24b43b56827cb912563ac4f78e17f63 (patch) | |
tree | 10b0a9b7c11b220655a97a78691dac43c78a53cf /PKGBUILD | |
parent | 00f454665527d041984c4482465b9b26f3597352 (diff) | |
download | aur-ossia-score-git.tar.gz |
Change the -git package to use the continuous .tar.xz
It's impossible to maintain otherwise with arch's git rules in PKGBUILD
when a project regularly adds / removes git submodules.
Sucks for everyone but well.
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 310 |
1 files changed, 26 insertions, 284 deletions
@@ -1,301 +1,43 @@ # Maintainer: Jean-Michaël Celerier <jeanmichael.celerier at gmail dot com> -# Useful commands : -# git submodule foreach --recursive --quiet 'git remote -v' | grep origin | grep -v push | awk '{ print "\"git+" $2 "\"" }' - -# git submodule foreach --quiet 'module=$(echo $name | rev | cut -d"/" -f1 | rev) ; echo "git config submodule.$path.url \$srcdir/$module"' - -# printf "'SKIP'%.0s\n" {1..43} pkgname=ossia-score-git -pkgver=r10688.9e6c07768 +pkgver=r10861.83872ad17 pkgrel=1 -pkgdesc="ossia score, an interactive sequencer for the intermedia arts (git master)" +pkgdesc="ossia score, an interactive sequencer for the intermedia arts" arch=('x86_64') url="https://ossia.io" license=('GPLv3') depends=('clang' 'qt6-base' 'qt6-imageformats' 'qt6-svg' 'qt6-websockets' 'qt6-serialport' 'qt6-declarative' 'qt6-scxml' 'qt6-shadertools' 'ffmpeg' 'portaudio' 'jack') makedepends=('git' 'cmake' 'lld' 'boost') -optdepends=('pipewire' 'faust' 'lilv' 'suil' 'lv2' 'sdl2' 'libfreenect2' 'ysfx-git' 'leap-motion-sdk' 'leap-motion-driver') -provides=('ossia-score-git') +optdepends=('pipewire' 'faust' 'lilv' 'suil' 'lv2' 'sdl2' 'libfreenect2' 'ysfx' 'leap-motion-sdk' 'leap-motion-driver' 'ndi-sdk') +provides=("ossia-score-git") conflicts=('ossia-score') replaces=('i-score') - -source=( -"git+https://github.com/jcelerier/Aether.git" -"git+https://github.com/jcelerier/DSPFilters" -"git+https://github.com/LancePutnam/Gamma" -"git+https://github.com/jcelerier/Gist" -"git+https://github.com/jcelerier/QCodeEditor" -"git+https://github.com/jcelerier/QProgressIndicator" -"git+https://github.com/jcelerier/Qt-Color-Widgets.git" -"git+https://github.com/jcelerier/Syphon-Framework" -"git+https://github.com/celtera/avendish" -"git+https://github.com/Vidvox/hap" -"git+https://github.com/ossia/libossia" -"git+https://github.com/ossia/score" -"git+https://github.com/catchorg/Catch2" -"git+https://github.com/OculusVR/Flicks" -"git+https://github.com/Reputeless/PerlinNoise" -"git+https://github.com/jcelerier/Servus" -"git+https://github.com/jcelerier/dnssd" -"git+https://github.com/jcelerier/SmallFunction" -"git+https://github.com/hanickadot/compile-time-regular-expressions" -"git+https://github.com/jcelerier/concurrentqueue" -"git+https://github.com/thibaudk/dno" -"git+https://github.com/mackron/dr_libs" -"git+https://github.com/dr-soft/miniaudio.git" -"git+https://github.com/ArashPartow/exprtk" -"git+https://github.com/fmtlib/fmt" -"git+https://github.com/avilleret/ios-cmake.git" -"git+https://github.com/jcelerier/kfr" -"git+https://github.com/jcelerier/libartnet" -"git+https://github.com/jcelerier/libremidi" -"git+https://github.com/jcelerier/libsamplerate" -"git+https://github.com/kokkos/mdspan" -"git+https://github.com/jcelerier/nano-signal-slot" -"git+https://github.com/jcelerier/oscpack" -"git+https://github.com/pybind/pybind11" -"git+https://github.com/avaneev/r8brain-free-src" -"git+https://github.com/maxbachmann/rapidfuzz-cpp.git" -"git+https://github.com/miloyip/rapidjson" -"git+https://github.com/google/googletest.git" -"git+https://github.com/google/re2" -"git+https://github.com/cameron314/readerwriterqueue" -"git+https://github.com/jcelerier/rnd" -"git+https://github.com/jcelerier/rubberband/" -"git+https://github.com/tcbrindle/span" -"git+https://github.com/gabime/spdlog" -"git+https://github.com/jcelerier/tuplet" -"git+https://github.com/martinus/unordered_dense" -"git+https://github.com/jcelerier/verdigris" -"git+https://github.com/jcelerier/weakjack" -"git+https://github.com/jcelerier/websocketpp" -"git+https://github.com/gpakosz/whereami" -"git+https://github.com/OSSIA/wiiuse.git" -"git+https://github.com/OSSIA/cmake-modules" -"git+https://github.com/jcelerier/libpd" -"git+https://github.com/nettoyeurny/opensl_stream.git" -"git+https://github.com/jcelerier/pure-data.git" -"git+https://github.com/jcelerier/libsndfile" -"git+https://github.com/ned14/llfio.git" -"git+https://github.com/ned14/ntkernel-error-category.git" -"git+https://github.com/jcelerier/magicitems" -"git+https://github.com/microsoft/mimalloc" -"git+https://github.com/ned14/outcome.git" -"git+https://github.com/ned14/boostdoc.git" -"git+https://github.com/ned14/hugo-theme-docdock.git" -"git+https://github.com/ned14/status-code.git" -"git+https://github.com/jcelerier/phantomstyle" -"git+https://github.com/ned14/quickcpplib.git" -"git+https://github.com/martinmoene/byte-lite.git" -"git+https://github.com/martinmoene/gsl-lite.git" -"git+https://github.com/akrzemi1/Optional.git" -"git+https://github.com/ned14/pcpp.git" -"git+https://github.com/ned14/ply.git" -"git+https://gitlab.com/sat-metalab/shmdata" -"git+https://github.com/jcelerier/snappy" -"git+https://github.com/google/benchmark.git" -"git+https://github.com/google/googletest.git" -"git+https://github.com/steinbergmedia/vst3_base" -"git+https://github.com/jcelerier/vst3_cmake" -"git+https://github.com/jcelerier/vst3_pluginterfaces" -"git+https://github.com/jcelerier/vst3_public_sdk" -"git+https://github.com/jcelerier/zipdownloader" -"git+https://github.com/Velron/doxygen-bootstrapped" -) - -sha256sums=('SKIP' -'SKIP' -'SKIP' -'SKIP' -'SKIP' -'SKIP' -'SKIP' -'SKIP' -'SKIP' -'SKIP' -'SKIP' -'SKIP' -'SKIP' -'SKIP' -'SKIP' -'SKIP' -'SKIP' -'SKIP' -'SKIP' -'SKIP' -'SKIP' -'SKIP' -'SKIP' -'SKIP' -'SKIP' -'SKIP' -'SKIP' -'SKIP' -'SKIP' -'SKIP' -'SKIP' -'SKIP' -'SKIP' -'SKIP' -'SKIP' -'SKIP' -'SKIP' -'SKIP' -'SKIP' -'SKIP' -'SKIP' -'SKIP' -'SKIP' -'SKIP' -'SKIP' -'SKIP' -'SKIP' -'SKIP' -'SKIP' -'SKIP' -'SKIP' -'SKIP' -'SKIP' -'SKIP' -'SKIP' -'SKIP' -'SKIP' -'SKIP' -'SKIP' -'SKIP' -'SKIP' -'SKIP' -'SKIP' -'SKIP' -'SKIP' -'SKIP' -'SKIP' -'SKIP' -'SKIP' -'SKIP' -'SKIP' -'SKIP' -'SKIP' -'SKIP' -'SKIP' -'SKIP' -'SKIP' -'SKIP' -'SKIP' -'SKIP' -'SKIP' -) - -_gitname=score +source=("https://github.com/ossia/score/releases/download/continuous/ossia.score-master-src.tar.xz") +sha512sums=('SKIP') pkgver() { - cd "$srcdir/$_gitname" - printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" + cd "$srcdir/ossia-score-master" + cat COMMIT } build() { - cd "$srcdir/$_gitname" - git config submodule.3rdparty/Aether.url $srcdir/Aether - git config submodule.3rdparty/DSPFilters.url $srcdir/DSPFilters - git config submodule.3rdparty/Gamma.url $srcdir/Gamma - git config submodule.3rdparty/Gist.url $srcdir/Gist - git config submodule.3rdparty/QCodeEditor.url $srcdir/QCodeEditor - git config submodule.3rdparty/QProgressIndicator.url $srcdir/QProgressIndicator - git config submodule.3rdparty/Qt-Color-Widgets.url $srcdir/Qt-Color-Widgets - git config submodule.3rdparty/Syphon-Framework.url $srcdir/Syphon-Framework - git config submodule.3rdparty/avendish.url $srcdir/avendish - git config submodule.3rdparty/hap.url $srcdir/hap - git config submodule.3rdparty/libossia.url $srcdir/libossia - git config submodule.3rdparty/libpd.url $srcdir/libpd - git config submodule.3rdparty/libsndfile.url $srcdir/libsndfile - git config submodule.3rdparty/llfio.url $srcdir/llfio - git config submodule.3rdparty/magicitems.url $srcdir/magicitems - git config submodule.3rdparty/mimalloc.url $srcdir/mimalloc - git config submodule.3rdparty/outcome.url $srcdir/outcome - git config submodule.3rdparty/phantomstyle.url $srcdir/phantomstyle - git config submodule.3rdparty/quickcpplib.url $srcdir/quickcpplib - git config submodule.3rdparty/shmdata.url $srcdir/shmdata - git config submodule.3rdparty/snappy.url $srcdir/snappy - git config submodule.3rdparty/vst3/base.url $srcdir/vst3_base - git config submodule.3rdparty/vst3/cmake.url $srcdir/vst3_cmake - git config submodule.3rdparty/vst3/pluginterfaces.url $srcdir/vst3_pluginterfaces - git config submodule.3rdparty/vst3/public.sdk.url $srcdir/vst3_public_sdk - git config submodule.3rdparty/zipdownloader.url $srcdir/zipdownloader - git config submodule.docs/Doxygen/doxygen-bootstrapped.url $srcdir/doxygen-bootstrapped - ( - cd 3rdparty/outcome - git config submodule.include/outcome/experimental/status-code.url $srcdir/status-code - ) - ( - cd 3rdparty/quickcpplib - git config submodule.include/quickcpplib/byte.url $srcdir/byte - git config submodule.include/quickcpplib/gsl-lite.url $srcdir/gsl-lite - git config submodule.include/quickcpplib/optional.url $srcdir/optional - git config submodule.pcpp.url $srcdir/pcpp - ) - ( - cd 3rdparty/llfio - git config submodule.include/llfio/ntkernel-error-category.url $srcdir/ntkernel-error-category - ) - ( - cd 3rdparty/libossia - git config submodule.3rdparty/Catch2.url $srcdir/Catch2 - git config submodule.3rdparty/Flicks.url $srcdir/Flicks - git config submodule.3rdparty/PerlinNoise.url $srcdir/PerlinNoise - git config submodule.3rdparty/Servus.url $srcdir/Servus - git config submodule.3rdparty/SmallFunction.url $srcdir/SmallFunction - git config submodule.3rdparty/compile-time-regular-expressions.url $srcdir/compile-time-regular-expressions - git config submodule.3rdparty/concurrentqueue.url $srcdir/concurrentqueue - git config submodule.3rdparty/dno.url $srcdir/dno - git config submodule.3rdparty/dr_libs.url $srcdir/dr_libs - git config submodule.3rdparty/exprtk.url $srcdir/exprtk - git config submodule.3rdparty/fmt.url $srcdir/fmt - git config submodule.3rdparty/ios-cmake.url $srcdir/ios-cmake - git config submodule.3rdparty/kfr.url $srcdir/kfr - git config submodule.3rdparty/libartnet.url $srcdir/libartnet - git config submodule.3rdparty/libremidi.url $srcdir/libremidi - git config submodule.3rdparty/libsamplerate.url $srcdir/libsamplerate - git config submodule.3rdparty/mdspan.url $srcdir/mdspan - git config submodule.3rdparty/nano-signal-slot.url $srcdir/nano-signal-slot - git config submodule.3rdparty/oscpack.url $srcdir/oscpack - git config submodule.3rdparty/pybind11.url $srcdir/pybind11 - git config submodule.3rdparty/r8brain-free-src.url $srcdir/r8brain-free-src - git config submodule.3rdparty/rapidfuzz-cpp.url $srcdir/rapidfuzz-cpp - git config submodule.3rdparty/rapidjson.url $srcdir/rapidjson - git config submodule.3rdparty/re2.url $srcdir/re2 - git config submodule.3rdparty/readerwriterqueue.url $srcdir/readerwriterqueue - git config submodule.3rdparty/rnd.url $srcdir/rnd - git config submodule.3rdparty/rubberband.url $srcdir/rubberband - git config submodule.3rdparty/span.url $srcdir/span - git config submodule.3rdparty/spdlog.url $srcdir/spdlog - git config submodule.3rdparty/tuplet.url $srcdir/tuplet - git config submodule.3rdparty/unordered_dense.url $srcdir/unordered_dense - git config submodule.3rdparty/verdigris.url $srcdir/verdigris - git config submodule.3rdparty/weakjack.url $srcdir/weakjack - git config submodule.3rdparty/websocketpp.url $srcdir/websocketpp - git config submodule.3rdparty/whereami.url $srcdir/whereami - git config submodule.3rdparty/wiiuse.url $srcdir/wiiuse - git config submodule.cmake/cmake-modules.url $srcdir/cmake-modules - ) - - - #git checkout master - #git submodule update --init --recursive - - mkdir -p "$srcdir/build" - cd "$srcdir/build" - cmake -Wno-dev \ - -DCMAKE_BUILD_TYPE=Release \ - -DCMAKE_UNITY_BUILD=1 \ - -DSCORE_PCH=0 \ - -DSCORE_STATIC_PLUGINS=1 \ - -DSCORE_FHS_BUILD=1 \ - -DSCORE_DEPLOYMENT_BUILD=1 \ - -DCMAKE_SKIP_RPATH=1 \ - -DCMAKE_INSTALL_PREFIX="$pkgdir/usr" \ - "$srcdir/$_gitname" - - cmake --build . + cmake \ + -S "$srcdir/ossia-score-master" \ + -B "$srcdir/build" \ + -Wno-dev \ + -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ \ + -DCMAKE_SHARED_LINKER_FLAGS="-fuse-ld=lld" \ + -DCMAKE_EXE_LINKER_FLAGS="-fuse-ld=lld" \ + -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_UNITY_BUILD=1 \ + -DSCORE_PCH=0 \ + -DSCORE_STATIC_PLUGINS=1 \ + -DSCORE_FHS_BUILD=1 \ + -DSCORE_DEPLOYMENT_BUILD=1 \ + -DCMAKE_SKIP_RPATH=ON \ + -DCMAKE_INSTALL_PREFIX="$pkgdir/usr" + + cmake --build "$srcdir/build" } package() { @@ -303,5 +45,5 @@ package() { cmake -DCMAKE_INSTALL_DO_STRIP=1 -DCOMPONENT=OssiaScore -P cmake_install.cmake rm -rf "$pkgdir/usr/share/faust" - install -D -m644 "$srcdir/$_gitname/LICENSE.txt" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" + install -D -m644 "$srcdir/ossia-score-master/LICENSE.txt" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" } |