upgpkg: wordpress 6.2.1-1
[ArchLinux/community.git] / synthv1 / trunk / PKGBUILD
blob1557fc173599938b284f9062e1b53113412f866e
1 # Maintainer: David Runge <dvzrv@archlinux.org>
2 # Contributor: speps <speps at aur dot archlinux dot org>
4 pkgbase=synthv1
5 pkgname=(synthv1 synthv1-lv2 synthv1-standalone)
6 pkgver=0.9.30
7 pkgrel=1
8 pkgdesc="Old-school all-digital 4-oscillator subtractive polyphonic synthesizer with stereo fx"
9 arch=(x86_64)
10 url="https://synthv1.sourceforge.io/synthv1-index.html"
11 license=(GPL2)
12 makedepends=(
13   alsa-lib
14   cmake
15   jack
16   liblo
17   lv2
18   qt6-base
19   qt6-svg
20   qt6-tools
22 source=(https://download.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz)
23 sha512sums=('cdb858e24feb3098c05831c4e975760c2d41482e8327080c64ce5693b1f3b3472011ba57e0296bfd3e654334090b97b8ececf9aca6e4fb33da2e5f42a372bc58')
24 b2sums=('c9b20a34e80af76dcec602462b60eb66f9bdd05525a5e47b47bd7afe4d947320c0d0bf35ad97bbf25f2681305a193005d5da40c4fe8007b88021d05764b7be77')
26 _pick() {
27   local p="$1" f d; shift
28   for f; do
29     d="$srcdir/$p/${f#$pkgdir/}"
30     mkdir -p "$(dirname "$d")"
31     mv "$f" "$d"
32     rmdir -p --ignore-fail-on-non-empty "$(dirname "$f")"
33   done
36 build() {
37   local cmake_options=(
38     -B build
39     -DCMAKE_BUILD_TYPE=None
40     -DCMAKE_INSTALL_PREFIX=/usr
41     -DCONFIG_QT6=ON
42     -S $pkgname-$pkgver
43     -Wno-dev
44   )
46   cmake "${cmake_options[@]}"
47   cmake --build build --verbose
50 package_synthv1() {
51   depends=(
52     $pkgbase-{lv2,standalone}=$pkgver
53   )
55   DESTDIR="$pkgdir" cmake --install build
57   (
58     cd "$pkgdir"
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}
66   )
69 package_synthv1-lv2() {
70   pkgdesc+=" - LV2 plugin"
71   groups=(
72     lv2-plugins
73     pro-audio
74   )
75   depends=(
76     gcc-libs
77     glibc
78     lv2-host
79     qt6-base
80     qt6-svg
81   )
82   optdepends=(
83     'qt6-wayland: for native wayland support'
84   )
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"
92   groups=(
93     pro-audio
94   )
95   depends=(
96     alsa-lib
97     gcc-libs
98     glibc
99     hicolor-icon-theme
100     jack
101     liblo
102     qt6-base
103     qt6-svg
104   )
105   optdepends=(
106     'new-session-manager: for session management using the standalone application'
107     'qt6-wayland: for native wayland support'
108   )
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: