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

David Runge dvzrv at archlinux.org
Tue Sep 17 11:48:27 UTC 2019


    Date: Tuesday, September 17, 2019 @ 11:48:27
  Author: dvzrv
Revision: 510982

archrelease: copy trunk to community-x86_64

Added:
  din/repos/community-x86_64/PKGBUILD
    (from rev 510981, din/trunk/PKGBUILD)
Deleted:
  din/repos/community-x86_64/PKGBUILD

----------+
 PKGBUILD |   95 +++++++++++++++++++++++++++++++++++++------------------------
 1 file changed, 59 insertions(+), 36 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2019-09-17 11:48:22 UTC (rev 510981)
+++ PKGBUILD	2019-09-17 11:48:27 UTC (rev 510982)
@@ -1,36 +0,0 @@
-# Maintainer: David Runge <dave at sleepmap.de>
-# Contributor: muzhed <chustokes at 126.com>
-
-pkgname=din
-pkgver=42
-pkgrel=1
-pkgdesc="A sound synthesizer and musical instrument."
-arch=('x86_64')
-url="https://dinisnoise.org/"
-license=('GPL2')
-groups=('pro-audio')
-depends=('hicolor-icon-theme' 'jack' 'libgl' 'sdl' 'tcl')
-makedepends=('boost' 'glu')
-source=("https://archive.org/download/dinisnoise_source_code/${pkgname}-${pkgver}.tar.gz")
-sha512sums=('2b3dff05e3cff71e5c8f5d61958f90208072bfbb5135a7d559bd5758a34af0acee1701a63044d00a096a391576a7eb9417527c1201ec4a024256b258be2b0df0')
-
-prepare() {
-  cd "${pkgname}-${pkgver}"
-  autoreconf -vfi
-}
-
-build() {
-  cd "${pkgname}-${pkgver}"
-  CXXFLAGS="${CXXFLAGS} -O3 -D__UNIX_ALSA__ -D__UNIX_JACK__" \
-  CFLAGS="${CFLAGS} -O3" \
-  ./configure --prefix='/usr'
-  make
-}
-
-package() {
-  cd "${pkgname}-${pkgver}"
-  make install DESTDIR="${pkgdir}"
-  # docs
-  install -t "${pkgdir}/usr/share/doc/${pkgname}/" \
-    -vDm 644 {AUTHORS,BUGS,CHANGELOG,NEWS,README,TODO}
-}

Copied: din/repos/community-x86_64/PKGBUILD (from rev 510981, din/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2019-09-17 11:48:27 UTC (rev 510982)
@@ -0,0 +1,59 @@
+# Maintainer: David Runge <dave at sleepmap.de>
+# Contributor: muzhed <chustokes at 126.com>
+
+pkgname=din
+pkgver=43
+pkgrel=1
+pkgdesc="A sound synthesizer and musical instrument."
+arch=('x86_64')
+url="https://dinisnoise.org/"
+license=('GPL2')
+groups=('pro-audio')
+depends=('glibc' 'hicolor-icon-theme' 'jack' 'libgl' 'rtaudio' 'rtmidi' 'sdl' 'tcl')
+makedepends=('boost' 'glu')
+source=("https://archive.org/download/dinisnoise_source_code/${pkgname}-${pkgver}.tar.gz")
+sha512sums=('cd371b9762e136853ac7cb879b3648841a5741c3ee3718b6684e33df49519b26eccf0bcf7119729c0ca1ff898f9828eb75cd2b4bb0aac374bc11f0da95f62a79')
+
+prepare() {
+  cd "${pkgname}-${pkgver}"
+#  # use system rtaudio/rtmidi, instead of vendored versions
+  sed -e 's/RtAudio.h//' \
+      -e 's/RtMidi.h//' \
+      -e '/RtMidi.Po/d' \
+      -e '/RtAudio.Po/d' \
+      -i include/Makefile.{am,in}
+  sed -e 's/RtAudio.cpp//' \
+      -e 's/RtMidi.cpp//' \
+      -e '/RtMidi.Po/d' \
+      -e '/RtAudio.Po/d' \
+      -e '/RtMidi.$(OBJECT)/d' \
+      -e '/RtAudio.$(OBJECT)/d' \
+      -i src/Makefile.{am,in}
+  sed -e 's/\"RtAudio.h\"/<RtAudio.h>/' \
+      -i include/audio.h
+  sed -e 's/\"RtMidi.h\"/<RtMidi.h>/' \
+      -i include/midi_in.h
+  sed -e '19i#include <RtAudio.h>' \
+      -i src/audio.cc
+  sed -e '13i#include <RtMidi.h>' \
+      -i src/midi_in.cc
+  rm -v include/Rt{Audio,Midi}.h src/Rt{Audio,Midi}.cpp
+  autoreconf -vfi
+}
+
+build() {
+  cd "${pkgname}-${pkgver}"
+  export CXXFLAGS="${CXXFLAGS} $(pkg-config --cflags jack rtaudio rtmidi)"
+  export CFLAGS="${CFLAGS} $(pkg-config --cflags jack rtaudio rtmidi)"
+  export LIBS="${LIBS} $(pkg-config --libs jack rtaudio rtmidi)"
+  ./configure --prefix='/usr'
+  make
+}
+
+package() {
+  cd "${pkgname}-${pkgver}"
+  make install DESTDIR="${pkgdir}"
+  # docs
+  install -t "${pkgdir}/usr/share/doc/${pkgname}/" \
+    -vDm 644 {AUTHORS,BUGS,CHANGELOG,NEWS,README,TODO}
+}


More information about the arch-commits mailing list