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

David Runge dvzrv at archlinux.org
Wed Aug 22 16:05:31 UTC 2018


    Date: Wednesday, August 22, 2018 @ 16:05:30
  Author: dvzrv
Revision: 373281

upgpkg: zita-at1 0.6.0-7

Adding xdg desktop file.

Modified:
  zita-at1/trunk/PKGBUILD

----------+
 PKGBUILD |   16 +++++++++++++---
 1 file changed, 13 insertions(+), 3 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2018-08-22 15:51:33 UTC (rev 373280)
+++ PKGBUILD	2018-08-22 16:05:30 UTC (rev 373281)
@@ -2,7 +2,7 @@
 # Maintainer: David Runge <dave at sleepmap.de>
 pkgname=zita-at1
 pkgver=0.6.0
-pkgrel=6
+pkgrel=7
 pkgdesc="An 'autotuner' Jack application."
 arch=('x86_64')
 url="https://kokkinizita.linuxaudio.org/linuxaudio/zita-at1-doc/quickguide.html"
@@ -9,15 +9,22 @@
 license=('GPL2')
 groups=('pro-audio')
 depends=('cairo' 'clxclient' 'clthreads' 'fftw' 'jack' 'zita-resampler')
+makedepends=('gendesk')
 source=("https://kokkinizita.linuxaudio.org/linuxaudio/downloads/${pkgname}-${pkgver}.tar.bz2")
 sha512sums=('835bc336c35c9364753f1adaca9569852ed9eabdff20d618acc128735dafd383dfcb9a8b8c9f631f7bc6fe549dae3af9c5508ad378ed85169406855d37b4608d')
 
 prepare() {
-  cd "${pkgname}-${pkgver}/source"
+  cd "${pkgname}-${pkgver}"
   # strip march=native
   sed -e '/native/d' \
       -e 's/freetype-config\ --cflags/pkgconf\ --cflags\ freetype2/' \
-      -i Makefile
+      -i source/Makefile
+  # XDG desktop file
+  gendesk -n \
+          --pkgname ${pkgname} \
+          --pkgdesc "${pkgdesc}" \
+          --name zita-at1 \
+          --categories "AudioVideo;Audio"
 }
 
 build() {
@@ -28,6 +35,9 @@
 package() {
   cd "${pkgname}-${pkgver}/source"
   make PREFIX=/usr DESTDIR="$pkgdir/" install
+  # XDG desktop integration
+  install -vDm 644 "../${pkgname}.desktop" \
+    -t "${pkgdir}/usr/share/applications/"
   install -t "${pkgdir}/usr/share/doc/${pkgname}" \
     -vDm 644 ../{AUTHORS,README} \
     -vDm 644 ../doc/*



More information about the arch-commits mailing list