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

David Runge dvzrv at gemini.archlinux.org
Fri Aug 20 09:30:31 UTC 2021


    Date: Friday, August 20, 2021 @ 09:30:31
  Author: dvzrv
Revision: 1003975

upgpkg: snd 21.6-1: Upgrade to 21.6.

Provide both s7 and ruby as extension language (only possible using separate binaries apparently).
Prefer the s7 version as default snd (upstream default) and add XDG desktop integration for all.
Add ruby to optdepends (for snd-ruby).

Modified:
  snd/trunk/PKGBUILD

----------+
 PKGBUILD |   81 +++++++++++++++++++++++++++++++++++++++++++++++--------------
 1 file changed, 63 insertions(+), 18 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2021-08-20 09:14:05 UTC (rev 1003974)
+++ PKGBUILD	2021-08-20 09:30:31 UTC (rev 1003975)
@@ -3,7 +3,7 @@
 # Contributor: Juergen Hoetzel <juergen at archlinux.org>
 
 pkgname=snd
-pkgver=21.5
+pkgver=21.6
 pkgrel=1
 pkgdesc="An advanced sound editor"
 arch=('x86_64')
@@ -11,33 +11,49 @@
 license=('custom:free')
 groups=('pro-audio')
 depends=('glibc' 'glu' 'gmp' 'gsl' 'libglvnd' 'libmpc' 'libx11' 'libxext'
-'libxpm' 'libxt' 'mpfr' 'openmotif' 'ruby')
+'libxpm' 'libxt' 'mpfr' 'openmotif')
 # TODO: maybe replace mpg123 with mpg321
 makedepends=('alsa-lib' 'fftw' 'flac' 'gendesk' 'jack' 'ladspa' 'libpulse'
-'libsamplerate' 'mpg123' 'speex' 'timidity++' 'vorbis-tools' 'wavpack')
-optdepends=('wavpack: For wav support'
-            'flac: For flac support'
-            'speex: For speex support'
-            'mpg123: For MPEG support'
-            'pulseaudio: For pulseaudio support'
-            'timidity++: For MIDI to WAVE support'
-            'vorbis-tools: For OGG support')
+'libsamplerate' 'mpg123' 'ruby' 'speex' 'timidity++' 'vorbis-tools' 'wavpack')
+optdepends=(
+  'flac: For flac support'
+  'mpg123: For MPEG support'
+  'pulseaudio: For pulseaudio support'
+  'ruby: for snd-ruby'
+  'speex: For speex support'
+  'timidity++: For MIDI to WAVE support'
+  'vorbis-tools: For OGG support'
+  'wavpack: For wav support'
+)
 source=("https://sourceforge.net/projects/${pkgname}/files/${pkgname}/${pkgver}/${pkgname}-${pkgver}.tar.gz")
-sha512sums=('ba7d8b8257af9c26b9ec044853da4632cc4d058fda1c3952513c973429972c011cca98821d8e8e1aa00198d94d02296f18776274b57a9512eec242190b91c950')
-b2sums=('9a45a0511af51ac8b4a7ba2f7dfb2432e1537d991009b546edf79d2c74750092d4a6f5cc8a3c9cf2ac1353071fd0b98ff2622ae9bd291590cd8e4b33d86c95aa')
+sha512sums=('78721ccf26bb4b7974eda91cb63ed7ef2917304139746dbccb6256f61355109c1facd38303a4ed1b2ef5f1b0ab9e6483e7b6d42d1101e575253f4552368c6472')
+b2sums=('fd77a655660c89d383e693d6a5ccdabce318e2b0db348bca5417b0f4a3efdf52bf6e161192b963dc33f41abfe31515a413d029e24d25041b09c7c8050792a415')
 
 prepare() {
-  cd "${pkgname}-${pkgver}"
-  # create XDG desktop file, as the default is broken
   gendesk -f -n \
-          --pkgname "${pkgname}" \
+          --pkgname "edu.stanford.ccrma.${pkgname}-s7" \
+          --name "${pkgname} (s7)" \
+          --exec "${pkgname}-s7" \
+          --genericname "Sound Editor" \
+          --categories "AudioVideo;Audio"
+  gendesk -f -n \
+          --pkgname "edu.stanford.ccrma.${pkgname}-ruby" \
+          --name "${pkgname} (ruby)" \
+          --exec "${pkgname}-ruby" \
+          --genericname "Sound Editor" \
+          --categories "AudioVideo;Audio"
+  gendesk -f -n \
+          --pkgname "edu.stanford.ccrma.${pkgname}" \
           --name "${pkgname}" \
           --exec "${pkgname}" \
           --genericname "Sound Editor" \
           --categories "AudioVideo;Audio"
+  rm -v "${pkgname}-${pkgver}/"*.desktop
+  cp -av "${pkgname}-${pkgver}" "${pkgname}-ruby-${pkgver}"
 }
 
 build() {
+  (
   cd "${pkgname}-${pkgver}"
   ./configure --prefix=/usr \
               --with-alsa \
@@ -47,15 +63,43 @@
               --with-ladspa \
               --with-motif \
               --with-pulseaudio \
+              --with-s7
+  make
+  )
+  (
+  cd "${pkgname}-ruby-${pkgver}"
+  ./configure --prefix=/usr \
+              --with-alsa \
+              --with-gl \
+              --with-gmp \
+              --with-jack \
+              --with-ladspa \
+              --with-motif \
+              --with-pulseaudio \
               --with-ruby
   make
+  )
 }
 
 package() {
   depends+=('libasound.so' 'libfftw3.so' 'libjack.so' 'libsamplerate.so')
+
+  (
   cd "${pkgname}-${pkgver}"
   make prefix="${pkgdir}/usr" install
-  install -vDm 644 *.desktop -t "${pkgdir}/usr/share/applications/"
+  mv -v "${pkgdir}/usr/bin/snd"{,-s7}
+  )
+
+  cd "${pkgname}-ruby-${pkgver}"
+  make prefix="${pkgdir}/usr" install
+  mv -v "${pkgdir}/usr/bin/snd"{,-ruby}
+
+  # set s7 version as default
+  ln -sv snd-s7 "${pkgdir}/usr/bin/snd"
+
+  # XDG desktop integration
+  install -vDm 644 ../*.desktop -t "${pkgdir}/usr/share/applications/"
+  # license
   install -vDm 644 COPYING -t "${pkgdir}/usr/share/licenses/${pkgname}"
   # docs
   install -vDm 644 {{HISTORY,README}.Snd,NEWS} \
@@ -62,6 +106,7 @@
     -t "${pkgdir}/usr/share/doc/${pkgname}/"
   install -vDm 644 *.html -t "${pkgdir}/usr/share/doc/${pkgname}/html"
   install -vDm 644 pix/*.png -t "${pkgdir}/usr/share/doc/${pkgname}/html/pix"
+
+  # remove examples of unsupported extension language forth (not in the repos)
+  rm -v "${pkgdir}/usr/share/${pkgname}/"*.fs
 }
-
-# vim:set ts=2 sw=2 et:



More information about the arch-commits mailing list