1 # Maintainer: David Runge <dvzrv@archlinux.org>
2 # Contributor: speps <speps at aur dot archlinux dot org>
5 pkgname=(drumkv1 drumkv1-lv2 drumkv1-standalone)
8 pkgdesc="An old-school drum-kit sampler"
10 url="https://drumkv1.sourceforge.io/"
23 source=(https://download.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz)
24 sha512sums=('8ef7a89c8fefc36dd0f98842ad34f067ffaafb7429a813542f247d3b1097676007c9018b528fe2f7128d3800b822282d9322a0eb2b861b25ef215e50acc46e39')
25 b2sums=('09944a1b3798383a675b501d42efb6d4a4f07ba4531f77f75f3a611975ebdeee4d4028d9ae501dea89440e0d8b925913349e1e482c5a2a7072b4996eafc6aa7b')
28 local p="$1" f d; shift
30 d="$srcdir/$p/${f#$pkgdir/}"
31 mkdir -p "$(dirname "$d")"
33 rmdir -p --ignore-fail-on-non-empty "$(dirname "$f")"
40 -DCMAKE_BUILD_TYPE=None
41 -DCMAKE_INSTALL_PREFIX=/usr
47 cmake "${cmake_options[@]}"
48 cmake --build build --verbose
53 $pkgbase-{lv2,standalone}=$pkgver
56 DESTDIR="$pkgdir" cmake --install build
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}
70 package_drumkv1-lv2() {
71 pkgdesc+=" - LV2 plugin"
79 libsndfile libsndfile.so
85 'qt6-wayland: for native wayland support'
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"
104 libsndfile libsndfile.so
109 'new-session-manager: for session management using the standalone application'
110 'qt6-wayland: for native wayland support'
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: