1 # Maintainer: David Runge <dvzrv@archlinux.org>
11 pkgdesc="An old-school polyphonic additive synthesizer"
13 url="https://padthv1.sourceforge.io/"
26 source=(https://download.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz)
27 sha512sums=('f03bd062b47f58ea2a7aefb703c1183b399f3faebdd63ce8ff8fd364c97d2fe85e27003219e504639fc44d56c4a19539a14ff989a4998406b8c13c85b7c7beb0')
28 b2sums=('04bd0cffe431e59740eaacb9b424b69ac43becd7d8ceb267e1b0cb7c859e7412df3b7ab8a729fc70920298a4b4bcf3e27d430797c459113359b80147057076b5')
31 local p="$1" f d; shift
33 d="$srcdir/$p/${f#$pkgdir/}"
34 mkdir -p "$(dirname "$d")"
36 rmdir -p --ignore-fail-on-non-empty "$(dirname "$f")"
43 -D CMAKE_BUILD_TYPE=None
44 -D CMAKE_INSTALL_PREFIX=/usr
50 cmake "${cmake_options[@]}"
51 cmake --build build --verbose
56 $pkgbase-{lv2,standalone}=$pkgver
59 DESTDIR="$pkgdir" cmake --install build
64 # have find-libdeps resolve dependencies properly:
65 # https://gitlab.archlinux.org/archlinux/devtools/-/issues/102
66 find usr/lib -type f -iname "*.so" -exec chmod +x {} \;
68 _pick $pkgbase-lv2 usr/lib/lv2
69 _pick $pkgbase-standalone usr/{bin,share}
73 package_padthv1-lv2() {
74 pkgdesc+=" - LV2 plugin"
88 'qt6-wayland: for native wayland support'
91 mv -v $pkgname/* "$pkgdir"
92 install -vDm 644 $pkgbase-$pkgver/{ChangeLog,README} -t "$pkgdir/usr/share/doc/$pkgname"
95 package_padthv1-standalone() {
96 pkgdesc+=" - standalone"
112 'new-session-manager: for session management using the standalone application'
113 'qt6-wayland: for native wayland support'
116 mv -v $pkgname/* "$pkgdir"
117 install -vDm 644 $pkgbase-$pkgver/{ChangeLog,README} -t "$pkgdir/usr/share/doc/$pkgname"
119 # vim:set ts=2 sw=2 et: