archrelease: copy trunk to community-x86_64
[ArchLinux/community.git] / drumkv1 / trunk / PKGBUILD
blobc224369dbbacdf8979f7ccc6dce7b46a45238b42
1 # Maintainer: David Runge <dvzrv@archlinux.org>
2 # Contributor: speps <speps at aur dot archlinux dot org>
4 pkgbase=drumkv1
5 pkgname=(drumkv1 drumkv1-lv2 drumkv1-standalone)
6 pkgver=0.9.30
7 pkgrel=1
8 pkgdesc="An old-school drum-kit sampler"
9 arch=(x86_64)
10 url="https://drumkv1.sourceforge.io/"
11 license=(GPL2)
12 makedepends=(
13   alsa-lib
14   cmake
15   jack
16   liblo
17   libsndfile
18   lv2
19   qt6-base
20   qt6-svg
21   qt6-tools
23 source=(https://download.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz)
24 sha512sums=('8ef7a89c8fefc36dd0f98842ad34f067ffaafb7429a813542f247d3b1097676007c9018b528fe2f7128d3800b822282d9322a0eb2b861b25ef215e50acc46e39')
25 b2sums=('09944a1b3798383a675b501d42efb6d4a4f07ba4531f77f75f3a611975ebdeee4d4028d9ae501dea89440e0d8b925913349e1e482c5a2a7072b4996eafc6aa7b')
27 _pick() {
28   local p="$1" f d; shift
29   for f; do
30     d="$srcdir/$p/${f#$pkgdir/}"
31     mkdir -p "$(dirname "$d")"
32     mv "$f" "$d"
33     rmdir -p --ignore-fail-on-non-empty "$(dirname "$f")"
34   done
37 build() {
38   local cmake_options=(
39     -B build
40     -DCMAKE_BUILD_TYPE=None
41     -DCMAKE_INSTALL_PREFIX=/usr
42     -DCONFIG_QT6=ON
43     -S $pkgname-$pkgver
44     -Wno-dev
45   )
47   cmake "${cmake_options[@]}"
48   cmake --build build --verbose
51 package_drumkv1() {
52   depends=(
53     $pkgbase-{lv2,standalone}=$pkgver
54   )
56   DESTDIR="$pkgdir" cmake --install build
58   (
59     cd "$pkgdir"
61     # have find-libdeps resolve dependencies properly:
62     # https://gitlab.archlinux.org/archlinux/devtools/-/issues/102
63     find usr/lib -type f -iname "*.so" -exec chmod +x {} \;
65     _pick $pkgbase-lv2 usr/lib/lv2
66     _pick $pkgbase-standalone usr/{bin,share}
67   )
70 package_drumkv1-lv2() {
71   pkgdesc+=" - LV2 plugin"
72   groups=(
73     lv2-plugins
74     pro-audio
75   )
76   depends=(
77     gcc-libs
78     glibc
79     libsndfile libsndfile.so
80     lv2-host
81     qt6-base
82     qt6-svg
83   )
84   optdepends=(
85     'qt6-wayland: for native wayland support'
86   )
88   mv -v $pkgname/* "$pkgdir"
89   install -vDm 644 $pkgbase-$pkgver/{ChangeLog,README} -t "$pkgdir/usr/share/doc/$pkgname"
92 package_drumkv1-standalone() {
93   pkgdesc+=" - standalone"
94   groups=(
95     pro-audio
96   )
97   depends=(
98     alsa-lib
99     gcc-libs
100     glibc
101     hicolor-icon-theme
102     jack
103     liblo
104     libsndfile libsndfile.so
105     qt6-base
106     qt6-svg
107   )
108   optdepends=(
109     'new-session-manager: for session management using the standalone application'
110     'qt6-wayland: for native wayland support'
111   )
113   mv -v $pkgname/* "$pkgdir"
114   install -vDm 644 $pkgbase-$pkgver/{ChangeLog,README} -t "$pkgdir/usr/share/doc/$pkgname"
117 # vim:set ts=2 sw=2 et: