archrelease: copy trunk to community-any
[ArchLinux/community.git] / qmidinet / trunk / PKGBUILD
blob71604b733aa3638a9b87d1cebd075328eb4ac1a4
1 # Maintainer: David Runge <dvzrv@archlinux.org>
3 pkgname=qmidinet
4 pkgver=0.9.9
5 pkgrel=1
6 pkgdesc="A MIDI Network Gateway via UDP/IP Multicast"
7 arch=(x86_64)
8 url="https://qmidinet.sourceforge.io"
9 license=(GPL2)
10 groups=(pro-audio)
11 depends=(
12   gcc-libs
13   glibc
14   hicolor-icon-theme
15   qt6-base
16   qt6-svg
18 makedepends=(
19   alsa-lib
20   cmake
21   jack
22   qt6-tools
24 optdepends=(
25   'qt6-wayland: for native wayland support'
27 source=(https://downloads.sourceforge.net/project/$pkgname/$pkgname/$pkgver/$pkgname-$pkgver.tar.gz)
28 sha512sums=('77e1bb6b9a5e20ed90f7778f6cd8bc39f66faeb5d3c0b7fc5f60901455655ce6d2f7cb06b1d3df4f25db1c6611eb0a1fa960c488341dad18ded30414df51dafb')
29 b2sums=('8cf52793eb0a3f2b2446c50ca961ef9710cb733c4204b9950fcb4c9e8751344df1654b8b222a6fe0efc3daf1a520f84a0c3700c2fd01121d6fbab4a5fe5c5b09')
31 build() {
32   local cmake_options=(
33     -B build
34     -D CMAKE_BUILD_TYPE=None
35     -D CMAKE_INSTALL_PREFIX=/usr
36     -D CONFIG_QT6=ON
37     -S $pkgname-$pkgver
38     -W no-dev
39   )
41   cmake "${cmake_options[@]}"
42   cmake --build build --verbose
45 package() {
46   depends+=(
47     alsa-lib libasound.so
48     jack libjack.so
49   )
51   DESTDIR="$pkgdir" cmake --install build
52   install -vDm 644 $pkgname-$pkgver/{ChangeLog,README} -t "$pkgdir/usr/share/doc/$pkgname"