85 lines
2.3 KiB
Bash
85 lines
2.3 KiB
Bash
#!/usr/bin/bash
|
|
# JOBoRun : Jwm OpenBox Obarun RUNit
|
|
# Maintainer : Joe Bo Run <joborun@disroot.org>
|
|
# PkgSource : url="https://gittea.disroot.org/joborun-pkg/jobextra/$pkgname"
|
|
# Website : https://pozol.eu
|
|
#-----------------------------------------| DESCRIPTION |---------------------------------------
|
|
|
|
# CAUTION: introduces soname change on *every* release:
|
|
# https://github.com/thestk/stk/issues/89
|
|
pkgbase=stk
|
|
pkgname=(stk) # stk-docs)
|
|
pkgver=5.0.1
|
|
pkgrel=02
|
|
pkgdesc='The Synthesis ToolKit in C++'
|
|
url="https://ccrma.stanford.edu/software/stk/"
|
|
makedepends=(alsa-lib doxygen gcc-libs glibc jack)
|
|
source=(https://github.com/thestk/$pkgname/archive/$pkgver/$pkgname-$pkgver.tar.gz)
|
|
|
|
prepare() {
|
|
cd $pkgname-$pkgver
|
|
autoreconf -fiv
|
|
}
|
|
|
|
build() {
|
|
local configure_options=(
|
|
--prefix=/usr
|
|
--enable-shared
|
|
--with-alsa
|
|
--with-jack
|
|
)
|
|
cd $pkgname-$pkgver
|
|
export RAWWAVE_PATH="/usr/share/$pkgname/rawwaves/"
|
|
./configure "${configure_options[@]}"
|
|
make
|
|
make -C projects/demo
|
|
|
|
cd doc/doxygen
|
|
doxygen
|
|
}
|
|
|
|
package_stk() {
|
|
depends=(
|
|
alsa-lib libasound.so
|
|
gcc-libs
|
|
glibc
|
|
jack libjack.so
|
|
)
|
|
optdepends=(
|
|
'stk-docs: for documentation'
|
|
'tk: for demos and samples'
|
|
)
|
|
provides=("libstk-$pkgver.so")
|
|
|
|
cd $pkgbase-$pkgver
|
|
make DESTDIR="$pkgdir" install
|
|
# license
|
|
install -vDm 644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname"
|
|
# 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"
|
|
}
|
|
|
|
#package_stk-docs() {
|
|
# pkgdesc+=' - documentation'
|
|
#
|
|
# cd $pkgbase-$pkgver
|
|
# # docs
|
|
# install -vDm 644 doc/{README-Linux,ReleaseNotes,SKINI,hierarchy}.txt -t "$pkgdir/usr/share/doc/$pkgbase"
|
|
# install -vDm 644 doc/html/*.{html,png,js} -t "$pkgdir/usr/share/doc/$pkgbase/html"
|
|
# # license
|
|
# install -vDm 644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname/"
|
|
#}
|
|
|
|
#---- arch license gpg-key & sha256sums ----
|
|
|
|
arch=(x86_64)
|
|
|
|
license=(MIT)
|
|
|
|
sha256sums=(1dd1a5063efa43d4bc9792d1394b395672fb2222cdb0e56c7c8e3f6db22ece86) # stk-5.0.1.tar.gz
|
|
|
|
## 22d0bb743c83587d9bd732a930748b8ed4226bb521ae790c194af3c2a0bc6cfc stk-5.0.1-02-x86_64.pkg.tar.lz
|
|
|