[arch-commits] Commit in din/repos (2 files)

David Runge dvzrv at archlinux.org
Fri Apr 13 23:07:52 UTC 2018


    Date: Friday, April 13, 2018 @ 23:07:51
  Author: dvzrv
Revision: 316221

archrelease: copy trunk to community-testing-x86_64

Added:
  din/repos/community-testing-x86_64/
  din/repos/community-testing-x86_64/PKGBUILD
    (from rev 316220, din/trunk/PKGBUILD)

----------+
 PKGBUILD |   44 ++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 44 insertions(+)

Copied: din/repos/community-testing-x86_64/PKGBUILD (from rev 316220, din/trunk/PKGBUILD)
===================================================================
--- community-testing-x86_64/PKGBUILD	                        (rev 0)
+++ community-testing-x86_64/PKGBUILD	2018-04-13 23:07:51 UTC (rev 316221)
@@ -0,0 +1,44 @@
+# Maintainer: David Runge <dave at sleepmap.de>
+# Contributor: muzhed <chustokes at 126.com>
+
+pkgname=din
+pkgver=32
+pkgrel=2
+pkgdesc="A sound synthesizer and musical instrument."
+arch=('x86_64')
+url="https://dinisnoise.org/"
+license=('GPL2')
+depends=('jack' 'libgl' 'sdl' 'tcl')
+makedepends=('boost' 'gendesk' 'glu')
+source=("https://archive.org/download/dinisnoise_source_code/${pkgname}-${pkgver}.tar.gz")
+sha512sums=('51eed3846b8ea0784777b9b382aedbe649923b874244297cf4fac244ed6a702964de66e6cb5b1d705f6695897c295542e15cf084f7f8d8350b03c784cf883958')
+
+prepare() {
+  cd "${pkgname}-${pkgver}"
+  autoreconf -vfi
+  # XDG desktop file
+  gendesk -n \
+          --pkgname ${pkgname} \
+          --pkgdesc "${pkgdesc}" \
+          --name DIN Is Noise \
+          --categories "Application;AudioVideo;Audio;Midi;Music"
+}
+
+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}"
+  # desktop file
+  install -vDm 644 "${pkgname}.desktop" \
+    "${pkgdir}/usr/share/applications/${pkgname}.desktop"
+  # docs
+  install -t "${pkgdir}/usr/share/doc/${pkgname}/" \
+    -vDm 644 {AUTHORS,BUGS,CHANGELOG,NEWS,README,TODO}
+}



More information about the arch-commits mailing list