[arch-commits] Commit in giada/repos (2 files)
David Runge
dvzrv at archlinux.org
Thu Apr 18 20:02:16 UTC 2019
Date: Thursday, April 18, 2019 @ 20:02:15
Author: dvzrv
Revision: 451997
archrelease: copy trunk to community-staging-x86_64
Added:
giada/repos/community-staging-x86_64/
giada/repos/community-staging-x86_64/PKGBUILD
(from rev 451996, giada/trunk/PKGBUILD)
----------+
PKGBUILD | 52 ++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 52 insertions(+)
Copied: giada/repos/community-staging-x86_64/PKGBUILD (from rev 451996, giada/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2019-04-18 20:02:15 UTC (rev 451997)
@@ -0,0 +1,52 @@
+# Maintainer: David Runge <dave at sleepmap.de>
+pkgname=giada
+pkgver=0.15.4
+pkgrel=2
+pkgdesc="A free, minimal, hardcore audio tool for DJs, live performers and electronic musicians"
+arch=('x86_64')
+url="https://www.giadamusic.com/"
+license=('GPL3')
+groups=('pro-audio')
+depends=('fltk' 'jansson' 'libpulse' 'libxpm' 'rtmidi')
+makedepends=('gendesk' 'imagemagick')
+checkdepends=('catch2' 'xorg-server-xvfb')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/monocasual/${pkgname}/archive/v${pkgver}.tar.gz")
+sha512sums=('53575620d13d2bab57ab2431dfcc8967bcc6a1109e788bc52bef638268f314a75f8c9a6de2301de31fbc0eca578874e641d14bf6e26e02f4c156d970d36345dd')
+
+prepare() {
+ cd "$pkgname-$pkgver"
+ autoreconf -vfi
+ # XDG desktop file
+ gendesk -n \
+ --pkgname ${pkgname} \
+ --pkgdesc "${pkgdesc}" \
+ --name Giada \
+ --categories "AudioVideo;Audio;Midi;Sequencer"
+ # fixing catch2 include for system library
+ sed -e 's|catch\.hpp|catch2/catch\.hpp|g' -i tests/*.cpp
+}
+
+build() {
+ cd "$pkgname-$pkgver"
+ ./configure --prefix=/usr \
+ --target=linux \
+ --enable-system-catch
+ make
+}
+
+check(){
+ cd "$pkgname-$pkgver"
+ xvfb-run -a make -k check
+}
+
+package() {
+ cd "$pkgname-$pkgver"
+ make DESTDIR="$pkgdir/" install
+ # XDG integration
+ install -vDm 644 "${pkgname}.desktop" -t "${pkgdir}/usr/share/applications"
+ install -vDm 644 "extras/${pkgname}-logo.png" \
+ "${pkgdir}/usr/share/pixmaps/${pkgname}.png"
+ # docs
+ install -vDm 644 {ChangeLog,README.md} \
+ -t "${pkgdir}/usr/share/doc/${pkgname}"
+}
More information about the arch-commits
mailing list