Date: Thursday, October 18, 2018 @ 21:27:47 Author: dvzrv Revision: 396137
upgpkg: stk 4.6.0-2 Removing unneeded patch and additional LICENSE (installing from source). Removing unneeded modifications. Building and installing demo, rawwaves and scores. Installing documentation. Modified: stk/trunk/PKGBUILD Deleted: stk/trunk/runtime.patch stk/trunk/stk.license ---------------+ PKGBUILD | 63 +++++++++++++++++++++++++++++--------------------------- runtime.patch | 18 ---------------- stk.license | 39 ---------------------------------- 3 files changed, 33 insertions(+), 87 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2018-10-18 21:17:13 UTC (rev 396136) +++ PKGBUILD 2018-10-18 21:27:47 UTC (rev 396137) @@ -1,50 +1,53 @@ # Maintainer: Lukas Fleischer <[email protected]> +# Contributor: David Runge <[email protected]> # Contributor: Ray Rashif <[email protected]> # Contributor: Mateusz Herych <[email protected]> pkgname=stk pkgver=4.6.0 -pkgrel=1 +pkgrel=2 pkgdesc='The Synthesis ToolKit in C++' arch=('x86_64') url='http://ccrma.stanford.edu/software/stk/' license=('MIT') -depends=('gcc-libs' 'jack') -makedepends=('pkg-config') +depends=('jack') optdepends=('tk: run provided demos/samples') -source=("https://ccrma.stanford.edu/software/stk/release/$pkgname-$pkgver.tar.gz" - "$pkgname.license" - runtime.patch) -md5sums=('4008470eaa5f0befd81bb09066507f64' - 'a0163d75a5f516b6c93f4fc948acff73' - '36551c348340307c765fde85d4336e73') +source=("https://ccrma.stanford.edu/software/stk/release/$pkgname-$pkgver.tar.gz") +md5sums=('7c0880985023d629036d221f464a070e') +prepare() { + cd "$pkgname-$pkgver" + autoreconf -vfi +} + build() { - cd "$srcdir/$pkgname-$pkgver" - - # add missing linker flag - export LIBS="$LIBS -lpthread" - - # enable shared library - sed -i 's/all : $(STATICLIB)/all : $(SHAREDLIB)/' src/Makefile.in - - # fix demo rawwaves path - sed -i 's:\.\./\.\.:/usr/lib/stk:' projects/demo/demo.cpp - - # run actual build - autoreconf - ./configure RAWWAVE_PATH=/usr/lib/stk/rawwaves/ --prefix=/usr --with-alsa --with-jack + cd "$pkgname-$pkgver" + ./configure RAWWAVE_PATH=/usr/share/${pkgname}/rawwaves/ \ + --prefix=/usr \ + --enable-shared \ + --with-alsa \ + --with-jack make - - # fix executable scripts - patch -Np1 -i ../runtime.patch + make -C projects/demo } package() { - cd "$srcdir/$pkgname-$pkgver" + cd "$pkgname-$pkgver" make DESTDIR="${pkgdir}" install - - # install license - install -Dm644 "../$pkgname.license" "$pkgdir/usr/share/licenses/stk/LICENSE" + # demo + install -vDm 755 projects/demo/stk-demo -t "${pkgdir}/usr/bin" + install -vDm 644 projects/demo/tcl/*.tcl \ + -t "${pkgdir}/usr/share/${pkgname}/tcl" + install -vDm 644 projects/demo/scores/{README,*.ski} \ + -t "${pkgdir}/usr/share/${pkgname}/scores" + install -vDm 644 rawwaves/*.{raw,c} \ + -t "${pkgdir}/usr/share/${pkgname}/rawwaves" + # docs + install -vDm 644 doc/{README-Linux,ReleaseNotes,SKINI,hierarchy}.txt \ + -t "${pkgdir}/usr/share/doc/${pkgname}" + install -vDm 644 doc/html/*.{html,png,js} \ + -t "${pkgdir}/usr/share/doc/${pkgname}/html" + # license + install -vDm 644 LICENSE -t "$pkgdir/usr/share/licenses/${pkgname}" } Deleted: runtime.patch =================================================================== --- runtime.patch 2018-10-18 21:17:13 UTC (rev 396136) +++ runtime.patch 2018-10-18 21:27:47 UTC (rev 396137) @@ -1,18 +0,0 @@ -diff -Naur stk-4.4.2.orig//projects/demo/StkDemo stk-4.4.2/projects/demo/StkDemo ---- stk-4.4.2.orig//projects/demo/StkDemo 2010-09-01 08:51:05.000000000 +0800 -+++ stk-4.4.2/projects/demo/StkDemo 2010-09-01 08:51:48.000000000 +0800 -@@ -1 +1,2 @@ -+cd /usr/lib/stk - wish < tcl/Demo.tcl | ./demo Clarinet -or -ip -diff -Naur stk-4.4.2.orig//projects/effects/StkEffects stk-4.4.2/projects/effects/StkEffects ---- stk-4.4.2.orig//projects/effects/StkEffects 2010-09-01 08:51:05.000000000 +0800 -+++ stk-4.4.2/projects/effects/StkEffects 2010-09-01 08:51:54.000000000 +0800 -@@ -1 +1,2 @@ -+cd /usr/lib/stk - wish < tcl/Effects.tcl | ./effects -ip -diff -Naur stk-4.4.2.orig//projects/ragamatic/Raga stk-4.4.2/projects/ragamatic/Raga ---- stk-4.4.2.orig//projects/ragamatic/Raga 2010-09-01 08:51:05.000000000 +0800 -+++ stk-4.4.2/projects/ragamatic/Raga 2010-09-01 08:52:04.000000000 +0800 -@@ -1 +1,2 @@ -+cd /usr/lib/stk - wish < tcl/Raga.tcl | ./ragamat -ip Deleted: stk.license =================================================================== --- stk.license 2018-10-18 21:17:13 UTC (rev 396136) +++ stk.license 2018-10-18 21:27:47 UTC (rev 396137) @@ -1,39 +0,0 @@ -The Synthesis ToolKit in C++ (STK) is a set of open source audio -signal processing and algorithmic synthesis classes written in the -C++ programming language. STK was designed to facilitate rapid -development of music synthesis and audio processing software, with -an emphasis on cross-platform functionality, realtime control, -ease of use, and educational example code. STK currently runs -with realtime support (audio and MIDI) on Linux, Macintosh OS X, -and Windows computer platforms. Generic, non-realtime support has -been tested under NeXTStep, Sun, and other platforms and should -work with any standard C++ compiler. - -STK WWW site: http://ccrma.stanford.edu/software/stk/ - -The Synthesis ToolKit in C++ (STK) -Copyright (c) 1995-2010 Perry R. Cook and Gary P. Scavone - -Permission is hereby granted, free of charge, to any person obtaining -a copy of this software and associated documentation files (the -"Software"), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -Any person wishing to distribute modifications to the Software is -asked to send the modifications to the original developer so that they -can be incorporated into the canonical version. This is, however, not -a binding provision of this license. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. -IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY -CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, -TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE -SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
