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

David Runge dvzrv at archlinux.org
Sun Jul 7 09:27:20 UTC 2019


    Date: Sunday, July 7, 2019 @ 09:27:20
  Author: dvzrv
Revision: 487597

archrelease: copy trunk to community-x86_64

Added:
  csoundqt/repos/community-x86_64/PKGBUILD
    (from rev 487596, csoundqt/trunk/PKGBUILD)
Deleted:
  csoundqt/repos/community-x86_64/PKGBUILD

----------+
 PKGBUILD |  118 ++++++++++++++++++++++++-------------------------------------
 1 file changed, 48 insertions(+), 70 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2019-07-07 09:27:12 UTC (rev 487596)
+++ PKGBUILD	2019-07-07 09:27:20 UTC (rev 487597)
@@ -1,70 +0,0 @@
-# Maintainer: David Runge <dave at sleepmap.de>
-# Contributor: Ainola
-# Contributor: rtfreedman
-
-_name=CsoundQt
-_rtmidiver=3.0.0
-pkgname=csoundqt
-pkgver=0.9.5
-pkgrel=7
-pkgdesc="Csound frontend with highlighting editor, autocomplete, interactive widgets and integrated help"
-arch=('x86_64')
-url="https://csoundqt.github.io/"
-license=('CCPL' 'FDL' 'GPL' 'LGPL2.1')
-groups=('pro-audio')
-# TODO: somehow include pythonqt
-depends=('csound' 'csound-doc' 'qt5-declarative')
-makedepends=('shared-mime-info')
-source=("${pkgname}-${pkgver}.tar.gz::https://github.com/${pkgname}/${pkgname}/archive/${pkgver}.tar.gz"
-        "rtmidi-${_rtmidiver}.tar.gz::https://github.com/thestk/rtmidi/archive/v${_rtmidiver}.tar.gz")
-sha512sums=('136fb395b955e21c153ccde3642362d4451bd458af78e235808a8b911a87e24fc5614c72b0e09f3dcd6ab1f49d563eb547dc1371b8ebd75cb8e051a2d629fb74'
-            '8975a63e7be9102af70401cef48c702597b87efe2d8fa30a978fe280e26da1dfa90d6f30cfbd3df587462f0dd085d0f29e1c014e67d7fcd3a36960b6bcfb3e55')
-
-prepare() {
-  cd "${_name}-${pkgver}"
-  # fix exptected location for html, examples and scripts
-  sed -e 's,csdocdir = \"\",csdocdir = \"/usr/share/doc/csound-doc/html\",' \
-    -i src/csoundoptions.cpp
-  sed -e 's,/usr/share/qutecsound/Examples/,/usr/share/csoundqt/Examples/,g' \
-    -i src/qutecsound.cpp
-  sed -e 's,../../csoundqt/src/Scripts,/usr/share/csoundqt/Scripts,' \
-    -i src/types.h
-
-  # fix install location of examples on filesystem
-  sed -e 's at DIR/qutecsound/@DIR/csoundqt/@' -i qcs.pro
-
-  # fix desktop file
-  chmod -c 644 ${_name}.desktop
-  mv -v ${_name}.desktop ${pkgname}.desktop
-  sed -e "s/${_name}.desktop/${pkgname}.desktop/" -i qcs.pro
-
-  # fix application icon
-  sed -e "s/qtcs/${pkgname}/" -i "${pkgname}.desktop"
-  sed -e "s,icons,icons/hicolor/scalable/apps," \
-      -e "s/qtcs.svg/${pkgname}.svg/" \
-      -i qcs.pro
-  mv -v images/qtcs.svg "images/${pkgname}.svg"
-
-  # move rtmidi sources
-  mv ${srcdir}/rtmidi-${_rtmidiver} .
-}
-
-build() {
-  cd "${_name}-${pkgver}"
-  qmake-qt5 qcs.pro \
-    SHARE_DIR="${pkgdir}/usr/share" \
-    INSTALL_DIR="${pkgdir}/usr" \
-    CONFIG+=rtmidi \
-    RTMIDI_DIR="rtmidi-${_rtmidiver}/"
-  make
-}
-
-package() {
-  cd "${_name}-${pkgver}"
-  make DESTDIR="${pkgdir}" install
-  # docs
-  install -t "${pkgdir}/usr/share/doc/${pkgname}/" \
-    -vDm644 {ChangeLog,README.md}
-}
-
-# vim:set ts=2 sw=2 et:

Copied: csoundqt/repos/community-x86_64/PKGBUILD (from rev 487596, csoundqt/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2019-07-07 09:27:20 UTC (rev 487597)
@@ -0,0 +1,48 @@
+# Maintainer: David Runge <dave at sleepmap.de>
+# Contributor: Ainola
+# Contributor: rtfreedman
+
+_pkgver=0.9.6-rc1
+_name=CsoundQt
+pkgname=csoundqt
+pkgver=${_pkgver//-}
+pkgrel=1
+pkgdesc="Csound frontend with highlighting editor, autocomplete, interactive widgets and integrated help"
+arch=('x86_64')
+url="https://csoundqt.github.io/"
+license=('CCPL' 'FDL' 'GPL' 'LGPL2.1')
+groups=('pro-audio')
+depends=('csound' 'csound-doc' 'desktop-file-utils' 'hicolor-icon-theme' 'qt5-declarative' 'rtmidi')
+makedepends=('shared-mime-info')
+source=("${pkgname}-${pkgver}.tar.gz::https://github.com/${pkgname}/${pkgname}/archive/${_pkgver}.tar.gz")
+sha512sums=('6ed98d28248936a860b6f92432e031c54f9584ec0b826dc6d1e69adade781d4104f613fc969196b188a413990cc1196821a9ecffc3aea5d653ec2da65be5c2f2')
+
+prepare() {
+  mv -v "${_name}-${_pkgver}" "${pkgname}-${pkgver}"
+  cd "${pkgname}-${pkgver}"
+  # fix inclusion of wrong path:
+  # https://github.com/CsoundQt/CsoundQt/issues/258#issuecomment-508981111
+  sed -e 's|/usr/local/rtmidi|/usr/include/rtmidi|g' \
+      -i config.pri
+}
+
+build() {
+  cd "${pkgname}-${pkgver}"
+  qmake-qt5 qcs.pro \
+    SHARE_DIR="${pkgdir}/usr/share" \
+    INSTALL_DIR="${pkgdir}/usr"
+  make
+}
+
+package() {
+  cd "${pkgname}-${pkgver}"
+  make DESTDIR="${pkgdir}" install
+  # overwrite broken symlink:
+  # https://github.com/CsoundQt/CsoundQt/issues/258#issuecomment-508982990
+  ln -svf "${_name}-d-cs6" "${pkgdir}/usr/bin/${pkgname}"
+  # docs
+  install -t "${pkgdir}/usr/share/doc/${pkgname}/" \
+    -vDm644 {ChangeLog,README.md}
+}
+
+# vim:set ts=2 sw=2 et:



More information about the arch-commits mailing list