1 # Maintainer: David Runge <dvzrv@archlinux.org>
2 # Contributor: speps <speps at aur dot archlinux dot org>
5 pkgname=(synthv1 synthv1-lv2 synthv1-standalone)
8 pkgdesc="Old-school all-digital 4-oscillator subtractive polyphonic synthesizer with stereo fx"
10 url="https://synthv1.sourceforge.io/synthv1-index.html"
22 source=(https://download.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz)
23 sha512sums=('cdb858e24feb3098c05831c4e975760c2d41482e8327080c64ce5693b1f3b3472011ba57e0296bfd3e654334090b97b8ececf9aca6e4fb33da2e5f42a372bc58')
24 b2sums=('c9b20a34e80af76dcec602462b60eb66f9bdd05525a5e47b47bd7afe4d947320c0d0bf35ad97bbf25f2681305a193005d5da40c4fe8007b88021d05764b7be77')
27 local p="$1" f d; shift
29 d="$srcdir/$p/${f#$pkgdir/}"
30 mkdir -p "$(dirname "$d")"
32 rmdir -p --ignore-fail-on-non-empty "$(dirname "$f")"
39 -DCMAKE_BUILD_TYPE=None
40 -DCMAKE_INSTALL_PREFIX=/usr
46 cmake "${cmake_options[@]}"
47 cmake --build build --verbose
52 $pkgbase-{lv2,standalone}=$pkgver
55 DESTDIR="$pkgdir" cmake --install build
60 # have find-libdeps resolve dependencies properly:
61 # https://gitlab.archlinux.org/archlinux/devtools/-/issues/102
62 find usr/lib -type f -iname "*.so" -exec chmod +x {} \;
64 _pick $pkgbase-lv2 usr/lib/lv2
65 _pick $pkgbase-standalone usr/{bin,share}
69 package_synthv1-lv2() {
70 pkgdesc+=" - LV2 plugin"
83 'qt6-wayland: for native wayland support'
86 mv -v $pkgname/* "$pkgdir"
87 install -vDm 644 $pkgbase-$pkgver/{ChangeLog,README} -t "$pkgdir/usr/share/doc/$pkgname/"
90 package_synthv1-standalone() {
91 pkgdesc+=" - standalone"
106 'new-session-manager: for session management using the standalone application'
107 'qt6-wayland: for native wayland support'
110 mv -v $pkgname/* "$pkgdir"
111 install -vDm 644 $pkgbase-$pkgver/{ChangeLog,README} -t "$pkgdir/usr/share/doc/$pkgname/"
113 # vim:set ts=2 sw=2 et: