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

David Runge dvzrv at gemini.archlinux.org
Mon Jan 10 20:25:52 UTC 2022


    Date: Monday, January 10, 2022 @ 20:25:52
  Author: dvzrv
Revision: 1099920

upgpkg: supercollider 3.12.2-1: Upgrade to 3.12.2.

Simplify quoting in file.
Remove unneeded prepare() function.
Simplify calls to cmake and make.

Modified:
  supercollider/trunk/PKGBUILD

----------+
 PKGBUILD |   38 +++++++++++++++-----------------------
 1 file changed, 15 insertions(+), 23 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2022-01-10 20:20:56 UTC (rev 1099919)
+++ PKGBUILD	2022-01-10 20:25:52 UTC (rev 1099920)
@@ -8,19 +8,18 @@
 pkgver=3.12.2
 pkgrel=1
 pkgdesc="Platform for audio synthesis and algorithmic composition"
-arch=('x86_64')
+arch=(x86_64)
 url="https://supercollider.github.io"
-license=('GPL3')
-groups=('pro-audio')
-depends=('gcc-libs' 'glibc'  'libx11' 'qt5-base' 'qt5-svg' 'qt5-webengine'
-'qt5-websockets')
-makedepends=('abletonlink' 'alsa-lib' 'avahi' 'boost' 'cmake' 'emacs' 'fftw'
-'libsndfile' 'qt5-tools' 'readline' 'systemd-libs' 'yaml-cpp')
-checkdepends=('xorg-server-xvfb')
+license=(GPL3)
+groups=(pro-audio)
+depends=(gcc-libs glibc  libx11 qt5-base qt5-svg qt5-webengine qt5-websockets)
+makedepends=(abletonlink alsa-lib avahi boost cmake emacs fftw libsndfile
+qt5-tools readline systemd-libs yaml-cpp)
+checkdepends=(xorg-server-xvfb)
 optdepends=('emacs: emacs interface'
             'gedit: gedit interface'
             'sc3-plugins: additional extension plugins for scsynth')
-provides=('libscsynth.so' "sclang=${pkgver}" "scsynth=${pkgver}")
+provides=(libscsynth.so "sclang=${pkgver}" "scsynth=${pkgver}")
 source=(
     "https://github.com/${pkgname}/${pkgname}/releases/download/Version-${pkgver}/${_name}-${pkgver}-Source.tar.bz2"{,.asc}
 )
@@ -32,12 +31,7 @@
 validpgpkeys=('2E1C4FC2F6BB58FA157B21B8064B501EB7405F04') # Marcin Pączkowski (dyfer)
 
 
-prepare() {
-  mv -v "${_name}-${pkgver}-Source" "${pkgname}-${pkgver}"
-}
-
 build() {
-  cd "${pkgname}-${pkgver}"
   export CFLAGS+=" -DNDEBUG"
   export CXXFLAGS+=" -DNDEBUG"
   cmake -DCMAKE_INSTALL_PREFIX=/usr \
@@ -51,22 +45,20 @@
         -DSC_VIM=OFF \
         -Wno-dev \
         -B build \
-        -S .
+        -S "${_name}-${pkgver}-Source"
   make VERBOSE=1 -C build
 }
 
 check() {
-  cd "${pkgname}-${pkgver}"
   xvfb-run make test ARGS="-VV -d -j1" -C build
 }
 
 package() {
-  depends+=('libasound.so' 'libavahi-common.so' 'libavahi-client.so'
-  'libboost_filesystem.so' 'libboost_program_options.so' 'libboost_regex.so'
-  'libboost_thread.so' 'libfftw3f.so' 'libjack.so' 'libsndfile.so'
-  'libreadline.so' 'libudev.so' 'libyaml-cpp.so')
-  cd "${pkgname}-${pkgver}"
+  depends+=(libasound.so libavahi-common.so libavahi-client.so
+  libboost_filesystem.so libboost_program_options.so libboost_regex.so
+  libboost_thread.so libfftw3f.so libjack.so libsndfile.so libreadline.so
+  libudev.so libyaml-cpp.so)
+
   make DESTDIR="${pkgdir}" install -C build
-  install -vDm 644 {AUTHORS,{CHANGELOG,README,README_LINUX}.md} \
-    -t "${pkgdir}/usr/share/doc/${pkgname}/"
+  install -vDm 644 "${_name}-${pkgver}-Source/"{AUTHORS,{CHANGELOG,README,README_LINUX}.md} -t "${pkgdir}/usr/share/doc/${pkgname}/"
 }



More information about the arch-commits mailing list