[arch-commits] Commit in zita-mu1/trunk (PKGBUILD)
David Runge
dvzrv at archlinux.org
Wed Aug 22 18:24:26 UTC 2018
Date: Wednesday, August 22, 2018 @ 18:24:26
Author: dvzrv
Revision: 373291
upgpkg: zita-mu1 0.2.2-6
Adding xdg desktop file. Minor fixes.
Modified:
zita-mu1/trunk/PKGBUILD
----------+
PKGBUILD | 22 +++++++++++++++++-----
1 file changed, 17 insertions(+), 5 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2018-08-22 18:19:36 UTC (rev 373290)
+++ PKGBUILD 2018-08-22 18:24:26 UTC (rev 373291)
@@ -1,7 +1,8 @@
+# $Id$
# Maintainer: David Runge <dave at sleepmap.de>
pkgname=zita-mu1
pkgver=0.2.2
-pkgrel=5
+pkgrel=6
pkgdesc="A simple JACK app used to organise stereo monitoring"
arch=('x86_64')
url="https://kokkinizita.linuxaudio.org/linuxaudio/zita-mu1-doc/quickguide.html"
@@ -8,17 +9,25 @@
license=('GPL3')
groups=('pro-audio')
depends=('cairo' 'clxclient' 'clthreads' 'jack')
+makedepends=('gendesk')
source=("https://kokkinizita.linuxaudio.org/linuxaudio/downloads/${pkgname}-${pkgver}.tar.bz2")
sha512sums=('72d3d21ad8c8e597ea54de3c91abfb5783a24dd2e2a316afd2875f761ce51b3e88a010f183b9e0880fffbc61d2ba4ec6ab23e2486fe90058caa4418fd70c21e9')
prepare() {
- cd "${pkgname}-${pkgver}/source"
+ cd "${pkgname}-${pkgver}"
# strip march=native
- sed -i '/native/d' Makefile
# fix png install dir
- sed -e 's/png\ \$(DESTDIR)\$(SHARED)/png\ -t\ \$(DESTDIR)\$(SHARED)/' -i Makefile
# fix binary install
- sed -e 's|zita-mu1 $(DESTDIR)$(BINDIR)|zita-mu1 $(DESTDIR)$(BINDIR)/$(PROGRAM)|' -i Makefile
+ sed -e '/native/d' \
+ -e 's/png\ \$(DESTDIR)\$(SHARED)/png\ -t\ \$(DESTDIR)\$(SHARED)/' \
+ -e 's|zita-mu1 $(DESTDIR)$(BINDIR)|zita-mu1 $(DESTDIR)$(BINDIR)/$(PROGRAM)|' \
+ -i source/Makefile
+ # XDG desktop file
+ gendesk -n \
+ --pkgname ${pkgname} \
+ --pkgdesc "${pkgdesc}" \
+ --name zita-mu1 \
+ --categories "AudioVideo;Audio"
}
build() {
@@ -32,6 +41,9 @@
# docs
install -t "${pkgdir}/usr/share/doc/${pkgname}" \
-vDm644 ../{AUTHORS,README}
+ # XDG desktop integration
+ install -vDm 644 "../${pkgname}.desktop" \
+ -t "${pkgdir}/usr/share/applications/"
# html
install -t "${pkgdir}/usr/share/doc/${pkgname}/html" \
-vDm644 ../doc/html/*
More information about the arch-commits
mailing list