[arch-commits] Commit in stk/repos (2 files)
David Runge
dvzrv at gemini.archlinux.org
Fri Nov 19 18:06:20 UTC 2021
Date: Friday, November 19, 2021 @ 18:06:20
Author: dvzrv
Revision: 1052784
archrelease: copy trunk to community-staging-x86_64
Added:
stk/repos/community-staging-x86_64/
stk/repos/community-staging-x86_64/PKGBUILD
(from rev 1052783, stk/trunk/PKGBUILD)
----------+
PKGBUILD | 73 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 73 insertions(+)
Copied: stk/repos/community-staging-x86_64/PKGBUILD (from rev 1052783, stk/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2021-11-19 18:06:20 UTC (rev 1052784)
@@ -0,0 +1,73 @@
+# Maintainer: David Runge <dvzrv at archlinux.org>
+# Maintainer: Lukas Fleischer <lfleischer at archlinux.org>
+# Contributor: Ray Rashif <schiv at archlinux.org>
+# Contributor: Mateusz Herych <heniekk at gmail.com>
+
+pkgbase=stk
+pkgname=(stk stk-docs)
+pkgver=4.6.2
+pkgrel=1
+pkgdesc='The Synthesis ToolKit in C++'
+arch=(x86_64)
+url="https://ccrma.stanford.edu/software/stk/"
+license=(MIT)
+makedepends=(alsa-lib doxygen gcc-libs glibc jack)
+# CAUTION: introduces soname change on *every* release:
+# https://github.com/thestk/stk/issues/89
+provides=("libstk-${pkgver}.so")
+source=("${pkgname}-${pkgver}.tar.gz::https://github.com/thestk/${pkgname}/archive/${pkgver}.tar.gz")
+sha512sums=('f1925744fdeddc9fccd24add52dbcc68b17c9f069be8d7d139b2a8a70d7d288881ec9effc564e1f43094a5395ddf45db7cc1339db17649abe0b8e0be2dc7bacd')
+b2sums=('b15f052580b30f4aee314e6737dbff4193a25b552ea9f251832e3f39e4f623ddcf4550d6e2fcd227aad593dd2f4af518844e5f25082f676ce02e237810a4923a')
+
+prepare() {
+ cd "$pkgname-$pkgver"
+ autoreconf -fiv
+}
+
+build() {
+ cd "$pkgname-$pkgver"
+ export RAWWAVE_PATH="/usr/share/${pkgname}/rawwaves/"
+ ./configure --prefix=/usr \
+ --enable-shared \
+ --with-alsa \
+ --with-jack
+ make
+ make -C projects/demo
+
+ cd doc/doxygen
+ doxygen
+}
+
+package_stk() {
+ depends=(gcc-libs glibc libasound.so libjack.so)
+ optdepends=(
+ 'stk-docs: for documentation'
+ 'tk: for demos and samples'
+ )
+
+ 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}"
+}
More information about the arch-commits
mailing list