Skip to content

Commit 28b443b

Browse files
committed
refactor: Update linux build files
1 parent b8e992b commit 28b443b

File tree

4 files changed

+97
-5
lines changed

4 files changed

+97
-5
lines changed

pkg/arch/bin/PKGBUILD

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# Maintainer: Lunix (David Hess) <[email protected]>
2+
pkgname='dimethoxy-disflux-bin'
3+
pkgver=0.0.0
4+
pkgrel=1
5+
pkgdesc="Phase shifting Effect for VST3 and LV2 compatible hosts"
6+
arch=('x86_64')
7+
url="https://github.com/Dimethoxy/Disflux"
8+
license=('GPL3')
9+
provides=('dimethoxy-disflux')
10+
depends=('curl')
11+
source=("https://github.com/Dimethoxy/Disflux/releases/download/v$pkgver/disflux-v$pkgver-linux.tar.gz")
12+
sha256sums=('SKIP')
13+
14+
package() {
15+
# Define new directories
16+
install -d "$pkgdir/usr/lib/vst3/Dimethoxy/Disflux" "$pkgdir/usr/lib/lv2/Dimethoxy/Disflux"
17+
install -d "$pkgdir/usr/share/licenses/$pkgname"
18+
19+
# Install plugins (use cp -r for directories)
20+
cp -r "$srcdir/Disflux.vst3" "$pkgdir/usr/lib/vst3/Dimethoxy/Disflux/"
21+
cp -r "$srcdir/Disflux.lv2" "$pkgdir/usr/lib/lv2/Dimethoxy/Disflux/"
22+
23+
# Download and install the LICENSE from the remote URL
24+
curl -L "https://raw.githubusercontent.com/Dimethoxy/Disflux/refs/heads/main/LICENSE" -o "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
25+
}
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ source=("git+https://github.com/Dimethoxy/Disflux.git")
1515
sha256sums=('SKIP')
1616

1717
# Build and runtime dependencies – adjust as necessary for your project.
18-
makedepends=('git' 'cmake' 'ninja' 'pkg-config' 'curl')
19-
depends=('alsa-lib' 'jack' 'ladspa' 'curl' 'freetype2' 'fontconfig' 'libx11'
20-
'libxcomposite' 'libxcursor' 'libxext' 'libxinerama' 'libxrandr'
21-
'libxrender' 'webkit2gtk' 'glu' 'mesa')
18+
makedepends=('gcc' 'git' 'cmake' 'ninja' 'pkg-config' 'alsa-lib' 'jack' 'ladspa'
19+
'curl' 'freetype2' 'fontconfig' 'libx11' 'libxcomposite' 'libxcursor'
20+
'libxext' 'libxinerama' 'libxrandr' 'libxrender' 'webkit2gtk' 'glu' 'mesa')
21+
depends=('curl')
2222

2323
# Generate a proper pkgver from the git commit (using git describe)
2424
pkgver() {

pkg/ubuntu/snapshot-metadata.yml

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
package:
2+
name: dimethoxy-disflux-git
3+
version: "7a25a9d" # Will be set dynamically by your CI/CD pipeline based on the latest git commit hash
4+
description: "Unstable build of the latest commit of Disflux from Dimethoxy's GitHub repository"
5+
architecture: amd64
6+
maintainer: "David Hess (Lunix) <[email protected]>"
7+
url: "https://github.com/Dimethoxy/Disflux"
8+
license: GPL-3.0-or-later
9+
provides:
10+
- disflux
11+
source: "git+https://github.com/Dimethoxy/Disflux.git"
12+
dependencies:
13+
- alsa-lib
14+
- jack
15+
- ladspa
16+
- curl
17+
- freetype2
18+
- fontconfig
19+
- libx11
20+
- libxcomposite
21+
- libxcursor
22+
- libxext
23+
- libxinerama
24+
- libxrandr
25+
- libxrender
26+
- webkit2gtk
27+
- glu
28+
- mesa
29+
build_dependencies:
30+
- git
31+
- cmake
32+
- ninja
33+
- pkg-config
34+
- curl
35+
36+
build:
37+
- mkdir -p build
38+
- cd build
39+
- cmake --preset "Linux Release" ..
40+
- cmake --build . --config "Release"
41+
42+
package:
43+
install_directories:
44+
- /usr/lib/vst3/Disflux
45+
- /usr/lib/lv2/Disflux
46+
- /usr/lib/clap/Disflux
47+
- /usr/share/licenses/dimethoxy-disflux-git
48+
files_to_install:
49+
- src/Disflux/build/src/DisfluxPlugin_artefacts/Release/VST3
50+
- src/Disflux/build/src/DisfluxPlugin_artefacts/Release/LV2
51+
- src/Disflux/build/src/DisfluxPlugin_artefacts/Release/CLAP
52+
license:
53+
source: "src/Disflux/LICENSE"
54+
destination: "/usr/share/licenses/dimethoxy-disflux-git/LICENSE"
55+
fallback_url: "https://raw.githubusercontent.com/Dimethoxy/Disflux/refs/heads/main/LICENSE"
56+
57+
# Optional post-build commands (if required)
58+
post_build:
59+
- dh_make -f deb

src/CMakeLists.txt

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,17 +82,25 @@ target_link_libraries(${PROJECT_NAME}
8282
juce::juce_product_unlocking
8383
Melatonin::Perfetto
8484
melatonin_blur
85-
curl
8685
PUBLIC
8786
FontBinaryData
8887
juce::juce_recommended_config_flags
8988
juce::juce_recommended_lto_flags
9089
juce::juce_recommended_warning_flags
9190
)
9291

92+
# Conditionally link curl only on Linux
93+
if(UNIX AND NOT APPLE)
94+
target_link_libraries(${PROJECT_NAME}
95+
PRIVATE
96+
curl
97+
)
98+
endif()
99+
93100
# Set up JUCE flags
94101
target_compile_definitions(${PROJECT_NAME}
95102
PRIVATE
103+
JUCE_USE_CURL=$<BOOL:${UNIX}>
96104
JUCE_WEB_BROWSER=0
97105
JUCE_VST3_CAN_REPLACE_VST2=0
98106
JUCE_DISPLAY_SPLASH_SCREEN=0

0 commit comments

Comments
 (0)