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

David Runge dvzrv at archlinux.org
Mon Apr 23 21:17:14 UTC 2018


    Date: Monday, April 23, 2018 @ 21:17:13
  Author: dvzrv
Revision: 317455

archrelease: copy trunk to community-x86_64

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

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

Copied: din/repos/community-x86_64/PKGBUILD (from rev 317454, din/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD	                        (rev 0)
+++ community-x86_64/PKGBUILD	2018-04-23 21:17:13 UTC (rev 317455)
@@ -0,0 +1,43 @@
+# Maintainer: David Runge <dave at sleepmap.de>
+# Contributor: muzhed <chustokes at 126.com>
+
+pkgname=din
+pkgver=33
+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=('df94b16fcfe1d95f824e4c0937935db1efaff6705912f4f629ce4b55ada7c9118d56dd3dce48fd9a73c6bbe2b0918c72113cffad42f3bd387bfd2accf5f1a4cb')
+
+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}"
+  # move desktop file and icon to correct directories
+  # change of the default location has been requested upstream
+  install -vdm 755 "${pkgdir}/usr/share/"{applications,icons/hicolor/scalable}
+  mv -v "${pkgdir}/usr/share/${pkgname}/pixmaps/${pkgname}.desktop" \
+    "${pkgdir}/usr/share/applications/${pkgname}.desktop"
+  mv -v "${pkgdir}/usr/share/${pkgname}/pixmaps/${pkgname}.svg" \
+    "${pkgdir}/usr/share/icons/hicolor/scalable/${pkgname}.svg"
+  # docs
+  install -t "${pkgdir}/usr/share/doc/${pkgname}/" \
+    -vDm 644 {AUTHORS,BUGS,CHANGELOG,NEWS,README,TODO}
+}



More information about the arch-commits mailing list