[arch-commits] Commit in stk/trunk (PKGBUILD)

David Runge dvzrv at gemini.archlinux.org
Fri Nov 19 18:06:11 UTC 2021


    Date: Friday, November 19, 2021 @ 18:06:11
  Author: dvzrv
Revision: 1052783

upgpkg: stk 4.6.2-1: Upgrade to 4.6.2.

Split out documentation into stk-docs.
Simplify quoting in file.

Modified:
  stk/trunk/PKGBUILD

----------+
 PKGBUILD |   47 ++++++++++++++++++++++++++++++-----------------
 1 file changed, 30 insertions(+), 17 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2021-11-19 16:59:17 UTC (rev 1052782)
+++ PKGBUILD	2021-11-19 18:06:11 UTC (rev 1052783)
@@ -1,27 +1,27 @@
+# Maintainer: David Runge <dvzrv at archlinux.org>
 # Maintainer: Lukas Fleischer <lfleischer at archlinux.org>
-# Contributor: David Runge <dvzrv at archlinux.org>
 # Contributor: Ray Rashif <schiv at archlinux.org>
 # Contributor: Mateusz Herych <heniekk at gmail.com>
 
-pkgname=stk
-pkgver=4.6.1
-pkgrel=3
+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')
-depends=('gcc-libs' 'glibc')
-makedepends=('alsa-lib' 'doxygen' 'jack')
-optdepends=('tk: run provided demos/samples')
+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=('61d4db7b4a45446e231dedc13e139cb488e2ce805278f0b20aa95e69ddb1fa9be549ab5f1fe24c69aa865ebc2940d5fba6e3819a1a7fb1d68e236131fcfb4cac')
+sha512sums=('f1925744fdeddc9fccd24add52dbcc68b17c9f069be8d7d139b2a8a70d7d288881ec9effc564e1f43094a5395ddf45db7cc1339db17649abe0b8e0be2dc7bacd')
+b2sums=('b15f052580b30f4aee314e6737dbff4193a25b552ea9f251832e3f39e4f623ddcf4550d6e2fcd227aad593dd2f4af518844e5f25082f676ce02e237810a4923a')
 
 prepare() {
   cd "$pkgname-$pkgver"
-  autoreconf -vfi
+  autoreconf -fiv
 }
 
 build() {
@@ -33,15 +33,22 @@
               --with-jack
   make
   make -C projects/demo
+
   cd doc/doxygen
   doxygen
 }
 
-package() {
-  depends+=('libasound.so' 'libjack.so')
-  cd "$pkgname-$pkgver"
+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 \
@@ -50,11 +57,17 @@
     -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/${pkgname}"
+    -t "${pkgdir}/usr/share/doc/${pkgbase}"
   install -vDm 644 doc/html/*.{html,png,js} \
-    -t "${pkgdir}/usr/share/doc/${pkgname}/html"
+    -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