[arch-commits] Commit in drumstick/repos (2 files)
David Runge
dvzrv at gemini.archlinux.org
Mon Jul 26 17:42:24 UTC 2021
Date: Monday, July 26, 2021 @ 17:42:23
Author: dvzrv
Revision: 985579
archrelease: copy trunk to community-staging-x86_64
Added:
drumstick/repos/community-staging-x86_64/
drumstick/repos/community-staging-x86_64/PKGBUILD
(from rev 985578, drumstick/trunk/PKGBUILD)
----------+
PKGBUILD | 46 ++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 46 insertions(+)
Copied: drumstick/repos/community-staging-x86_64/PKGBUILD (from rev 985578, drumstick/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2021-07-26 17:42:23 UTC (rev 985579)
@@ -0,0 +1,46 @@
+# Maintainer: David Runge <dvzrv at archlinux.org>
+# Contributor: speps <speps at aur dot archlinux dot org>
+# Contributor: Dany Martineau <dany.luc.martineau at gmail.com>
+
+pkgname=drumstick
+pkgver=2.3.0
+pkgrel=2
+pkgdesc="MIDI libraries for Qt5/C++"
+arch=('x86_64')
+url="https://drumstick.sourceforge.io/"
+license=('GPL2')
+depends=('gcc-libs' 'glibc' 'hicolor-icon-theme' 'qt5-base')
+makedepends=('alsa-lib' 'cmake' 'doxygen' 'docbook-xsl' 'fluidsynth' 'graphviz'
+'libpulse' 'qt5-tools')
+provides=('libdrumstick-alsa.so' 'libdrumstick-file.so' 'libdrumstick-rt.so'
+'libdrumstick-widgets.so')
+source=("https://downloads.sourceforge.net/${pkgname}/${pkgver}/${pkgname}-${pkgver}.tar.bz2")
+sha512sums=('151b2dbcf348f5308d44cfaea1c2cf170133eccc5df7eb380255cbc4f6130ab1fa83fb96d218221c1f528fe1ae4a36815f2f8a29c57499aa82a264a8bfa138d5')
+b2sums=('8ce5cc252646ff221024dd9a2fda58b7a629b05ed78a2d9172f83cd24646d9395141bc1079fec4259b86b996a122bccf2a8bef899e0eb81870f93d490f62c41d')
+
+build() {
+ cd "${pkgname}-${pkgver}"
+ cmake -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_BUILD_TYPE='None' \
+ -Wno-dev \
+ -B build \
+ -S .
+ make VERBOSE=1 -C build
+}
+
+check() {
+ cd "${pkgname}-${pkgver}"
+ # some tests fail due to insufficient system privileges, hence only run those
+ # that make sense in the build environment
+ # https://sourceforge.net/p/drumstick/bugs/24/
+ make test -C build/tests/fileTest1
+ make test -C build/tests/fileTest2
+}
+
+package() {
+ depends+=('libasound.so' 'libfluidsynth.so' 'libpulse.so' 'libpulse-simple.so')
+ cd "${pkgname}-${pkgver}"
+ make DESTDIR="${pkgdir}/" install -C build
+ install -t "${pkgdir}/usr/share/doc/${pkgname}/" \
+ -vDm 644 {AUTHORS,ChangeLog,NEWS,readme.md,TODO}
+}
More information about the arch-commits
mailing list