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

David Runge dvzrv at archlinux.org
Mon Aug 20 19:31:51 UTC 2018


    Date: Monday, August 20, 2018 @ 19:31:51
  Author: dvzrv
Revision: 372894

upgpkg: japa 0.8.4-3

Adding xdg desktop file.

Modified:
  japa/trunk/PKGBUILD

----------+
 PKGBUILD |   12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2018-08-20 19:14:52 UTC (rev 372893)
+++ PKGBUILD	2018-08-20 19:31:51 UTC (rev 372894)
@@ -2,7 +2,7 @@
 # Maintainer: David Runge <dave at sleepmap.de>
 pkgname=japa
 pkgver=0.8.4
-pkgrel=2
+pkgrel=3
 pkgdesc="A 'perceptual' or 'psychoacoustic' audio spectrum analyser"
 arch=('x86_64')
 url="https://kokkinizita.linuxaudio.org/linuxaudio/index.html"
@@ -9,6 +9,7 @@
 license=('GPL2')
 groups=('pro-audio')
 depends=('clxclient' 'clthreads' 'fftw' 'jack')
+makedepends=('gendesk')
 source=("https://kokkinizita.linuxaudio.org/linuxaudio/downloads/${pkgname}-${pkgver}.tar.bz2")
 sha512sums=('d81652153e88394c81cc257af59b554718d3476c48062cfa7e246627171dc92842f6524a06ab8151220d4dae9d94a386f2d90efb1d238bbbc522988dfeaad32a')
 
@@ -16,6 +17,12 @@
   cd "$pkgname-$pkgver"
   # disable optimizations
   sed -e '/native/d' -i source/Makefile
+  # XDG desktop file
+  gendesk -n \
+          --pkgname ${pkgname} \
+          --pkgdesc "${pkgdesc}" \
+          --name JAPA \
+          --categories "AudioVideo;Audio"
 }
 
 build() {
@@ -27,4 +34,7 @@
   cd "$pkgname-$pkgver/source"
   make PREFIX='/usr' DESTDIR="$pkgdir/" install
   install -vDm 644 ../{AUTHORS,README} -t "${pkgdir}/usr/share/doc/${pkgname}/"
+  # xdg desktop file
+  install -vDm 644 ../${pkgname}.desktop \
+    -t "${pkgdir}/usr/share/applications"
 }



More information about the arch-commits mailing list