[arch-commits] Commit in snd/repos/community-x86_64 (PKGBUILD PKGBUILD)

David Runge dvzrv at gemini.archlinux.org
Mon Sep 6 07:07:30 UTC 2021


    Date: Monday, September 6, 2021 @ 07:07:29
  Author: dvzrv
Revision: 1011858

archrelease: copy trunk to community-x86_64

Added:
  snd/repos/community-x86_64/PKGBUILD
    (from rev 1011857, snd/trunk/PKGBUILD)
Deleted:
  snd/repos/community-x86_64/PKGBUILD

----------+
 PKGBUILD |  179 ++++++++++++++++++++++++++++++++++++++-----------------------
 1 file changed, 112 insertions(+), 67 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2021-09-06 07:07:22 UTC (rev 1011857)
+++ PKGBUILD	2021-09-06 07:07:29 UTC (rev 1011858)
@@ -1,67 +0,0 @@
-# Maintainer: David Runge <dvzrv at archlinux.org>
-# Contributor: Ray Rashif <schiv at archlinux.org>
-# Contributor: Juergen Hoetzel <juergen at archlinux.org>
-
-pkgname=snd
-pkgver=21.5
-pkgrel=1
-pkgdesc="An advanced sound editor"
-arch=('x86_64')
-url="https://ccrma.stanford.edu/software/snd/"
-license=('custom:free')
-groups=('pro-audio')
-depends=('glibc' 'glu' 'gmp' 'gsl' 'libglvnd' 'libmpc' 'libx11' 'libxext'
-'libxpm' 'libxt' 'mpfr' 'openmotif' 'ruby')
-# 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')
-source=("https://sourceforge.net/projects/${pkgname}/files/${pkgname}/${pkgver}/${pkgname}-${pkgver}.tar.gz")
-sha512sums=('ba7d8b8257af9c26b9ec044853da4632cc4d058fda1c3952513c973429972c011cca98821d8e8e1aa00198d94d02296f18776274b57a9512eec242190b91c950')
-b2sums=('9a45a0511af51ac8b4a7ba2f7dfb2432e1537d991009b546edf79d2c74750092d4a6f5cc8a3c9cf2ac1353071fd0b98ff2622ae9bd291590cd8e4b33d86c95aa')
-
-prepare() {
-  cd "${pkgname}-${pkgver}"
-  # create XDG desktop file, as the default is broken
-  gendesk -f -n \
-          --pkgname "${pkgname}" \
-          --name "${pkgname}" \
-          --exec "${pkgname}" \
-          --genericname "Sound Editor" \
-          --categories "AudioVideo;Audio"
-}
-
-build() {
-  cd "${pkgname}-${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/"
-  install -vDm 644 COPYING -t "${pkgdir}/usr/share/licenses/${pkgname}"
-  # docs
-  install -vDm 644 {{HISTORY,README}.Snd,NEWS} \
-    -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"
-}
-
-# vim:set ts=2 sw=2 et:

Copied: snd/repos/community-x86_64/PKGBUILD (from rev 1011857, snd/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2021-09-06 07:07:29 UTC (rev 1011858)
@@ -0,0 +1,112 @@
+# Maintainer: David Runge <dvzrv at archlinux.org>
+# Contributor: Ray Rashif <schiv at archlinux.org>
+# Contributor: Juergen Hoetzel <juergen at archlinux.org>
+
+pkgname=snd
+pkgver=21.7
+pkgrel=1
+pkgdesc="An advanced sound editor"
+arch=('x86_64')
+url="https://ccrma.stanford.edu/software/snd/"
+license=('custom:free')
+groups=('pro-audio')
+depends=('glibc' 'glu' 'gmp' 'gsl' 'libglvnd' 'libmpc' 'libx11' 'libxext'
+'libxpm' 'libxt' 'mpfr' 'openmotif')
+# TODO: maybe replace mpg123 with mpg321
+makedepends=('alsa-lib' 'fftw' 'flac' 'gendesk' 'jack' 'ladspa' 'libpulse'
+'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=('c7d0a72aa3f1725545504b268c21bd3a044c160ba02b404affbc35209b20fa169eb5eff6c58db91f17a5d53867aed866e58021ca1e309dd647191836c2d13cb6')
+b2sums=('a93cf8be9d1cfca7b3fb51e6fdff4283b548e3aa81d41842d6e93706933bb79749263751a2e9180076b8e6407ccdaf8929a13beef2d30d6e092425ab3ee9b593')
+
+prepare() {
+  gendesk -f -n \
+          --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 \
+              --with-gl \
+              --with-gmp \
+              --with-jack \
+              --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
+  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} \
+    -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
+}



More information about the arch-commits mailing list