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

David Runge dvzrv at archlinux.org
Wed Aug 22 18:19:29 UTC 2018


    Date: Wednesday, August 22, 2018 @ 18:19:29
  Author: dvzrv
Revision: 373289

upgpkg: zita-dpl1 0.1.0-6

Adding xdg desktop file.

Modified:
  zita-dpl1/trunk/PKGBUILD

----------+
 PKGBUILD |   19 ++++++++++++++-----
 1 file changed, 14 insertions(+), 5 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2018-08-22 18:01:40 UTC (rev 373288)
+++ PKGBUILD	2018-08-22 18:19:29 UTC (rev 373289)
@@ -2,7 +2,7 @@
 # Maintainer: David Runge <dave at sleepmap.de>
 pkgname=zita-dpl1
 pkgver=0.1.0
-pkgrel=5
+pkgrel=6
 pkgdesc="A look-ahead digital peak level limiter"
 arch=('x86_64')
 url="https://kokkinizita.linuxaudio.org/linuxaudio/"
@@ -9,17 +9,23 @@
 license=('GPL2' 'custom')
 groups=('pro-audio')
 depends=('cairo' 'clthreads' 'clxclient' 'jack')
+makedepends=('gendesk')
 source=("https://kokkinizita.linuxaudio.org/linuxaudio/downloads/${pkgname}-${pkgver}.tar.bz2")
 sha512sums=('e1adf94a3acec5468f5fb2e3ac24ff9671588542754e792cbb73771f3043070ce577f122d21cd7a6c756eec51789b46b9a24fbe6128c274cb4d6554b5c7b37b1')
 
 prepare() {
-  cd "${pkgname}-${pkgver}/source"
+  cd "${pkgname}-${pkgver}"
   # split out custom license
-  head -n21 dplimit1.h > LICENSE
+  head -n21 source/dplimit1.h > LICENSE
   # strip -march=native
   sed -e '/native/d' \
       -e 's/freetype-config\ --cflags/pkgconf\ --cflags\ freetype2/' \
-      -i Makefile
+      -i source/Makefile
+  gendesk -n \
+          --pkgname ${pkgname} \
+          --pkgdesc "${pkgdesc}" \
+          --name zita-dpl1 \
+          --categories "AudioVideo;Audio"
 }
 
 build() {
@@ -31,7 +37,10 @@
   cd "${pkgname}-${pkgver}/source"
   make PREFIX=/usr DESTDIR="$pkgdir/" install
   # custom LICENSE
-  install -vDm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}/"
+  install -vDm 644 ../LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}/"
+  # XDG desktop integration
+  install -vDm 644 "../${pkgname}.desktop" \
+    -t "${pkgdir}/usr/share/applications/"
   # docs
   install -t "${pkgdir}/usr/share/doc/${pkgname}" \
     -vDm 644 ../doc/* \



More information about the arch-commits mailing list