Skip to content

Commit 28cbbed

Browse files
committed
chore: Add package files
1 parent 3612014 commit 28cbbed

File tree

6 files changed

+142
-0
lines changed

6 files changed

+142
-0
lines changed

pkg/arch/bin/PKGBUILD

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

pkg/arch/git/PKGBUILD

+64
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
# Maintainer: David Hess (Lunix) <[email protected]>
2+
# PKGBUILD for Oscilloscope Unstable (latest git commit)
3+
4+
pkgname=dimethoxy-oscilloscope-git
5+
# pkgver is generated from the latest git commit; the initial dummy version is 0.0.0.
6+
pkgver=7a25a9d
7+
pkgrel=1
8+
pkgdesc="Unstable build of the latest commit of Oscilloscope from Dimethoxy's GitHub repository"
9+
arch=('x86_64')
10+
url="https://github.com/Dimethoxy/Oscilloscope"
11+
license=('GPL3')
12+
provides=('dimethoxy-oscilloscope')
13+
conflicts=('dimethoxy-oscilloscope' 'dimethoxy-oscilloscope-git' 'dimethoxy-oscilloscope-bin')
14+
# Source from the git repo (unstable build using the latest commit)
15+
source=("git+https://github.com/Dimethoxy/Oscilloscope.git")
16+
sha256sums=('SKIP')
17+
18+
# Build and runtime dependencies – adjust as necessary for your project.
19+
makedepends=('gcc' 'git' 'cmake' 'ninja' 'pkg-config' 'alsa-lib' 'jack' 'ladspa'
20+
'curl' 'freetype2' 'fontconfig' 'libx11' 'libxcomposite' 'libxcursor'
21+
'libxext' 'libxinerama' 'libxrandr' 'libxrender' 'webkit2gtk' 'glu' 'mesa')
22+
depends=('curl')
23+
24+
# Generate a proper pkgver from the git commit (using git describe)
25+
pkgver() {
26+
cd "$srcdir/Oscilloscope"
27+
# Extract the latest tag (assumed to be the base version)
28+
base_version=$(git describe --tags --abbrev=0 | sed 's/^v//')
29+
# Get the short commit hash
30+
commit_hash=$(git rev-parse --short HEAD)
31+
# Construct the version string
32+
echo "${commit_hash}"
33+
}
34+
35+
build() {
36+
cd "$srcdir/Oscilloscope"
37+
mkdir -p build
38+
cd build
39+
# Configure using the CMake preset defined in your project.
40+
cmake --preset "Linux Release" ..
41+
# Build using the Release configuration.
42+
cmake --build . --config "Release"
43+
}
44+
45+
package() {
46+
# Create installation directories for the plugin formats.
47+
install -d "$pkgdir/usr/lib/vst3/Oscilloscope"
48+
install -d "$pkgdir/usr/lib/lv2/Oscilloscope"
49+
install -d "$pkgdir/usr/lib/clap/Oscilloscope"
50+
install -d "$pkgdir/usr/share/licenses/$pkgname"
51+
52+
# Install the built artifacts paths mirror those produced by your CI/CD script.
53+
cp -r "$srcdir/Oscilloscope/build/src/OscilloscopePlugin_artefacts/Release/VST3" "$pkgdir/usr/lib/vst3/Oscilloscope/"
54+
cp -r "$srcdir/Oscilloscope/build/src/OscilloscopePlugin_artefacts/Release/LV2" "$pkgdir/usr/lib/lv2/Oscilloscope/"
55+
cp -r "$srcdir/Oscilloscope/build/src/OscilloscopePlugin_artefacts/Release/CLAP" "$pkgdir/usr/lib/clap/Oscilloscope/"
56+
57+
# Install the license.
58+
if [ -f "$srcdir/Oscilloscope/LICENSE" ]; then
59+
install -Dm644 "$srcdir/Oscilloscope/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
60+
else
61+
curl -L "https://raw.githubusercontent.com/USERNAME/Oscilloscope/refs/heads/main/LICENSE" \
62+
-o "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
63+
fi
64+
}

pkg/fedora/snapshot.spec

+43
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
%global git_hash %{?git_hash}
2+
3+
Name: dimethoxy-oscilloscope-snapshot
4+
Version: 0.1
5+
Release: %{?git_hash}.1%{?dist}
6+
Summary: Unstable build of the latest commit of Oscilloscope from Dimethoxy's GitHub repository
7+
License: GPL-3.0-or-later
8+
URL: https://github.com/Dimethoxy/Oscilloscope
9+
Source0: dimethoxy-oscilloscope-snapshot-%{git_hash}.tar.gz
10+
Conflicts: dimethoxy-oscilloscope
11+
Requires: curl
12+
13+
%description
14+
Unstable build of the latest commit of Oscilloscope from Dimethoxy's GitHub repository.
15+
16+
%prep
17+
# Extract the tarball containing the pre-built artifacts
18+
%setup -q
19+
20+
%install
21+
# Create the base installation directories
22+
install -d %{buildroot}/usr/lib/vst3
23+
install -d %{buildroot}/usr/lib/lv2
24+
install -d %{buildroot}/usr/lib/clap
25+
install -d %{buildroot}/usr/share/licenses/%{name}
26+
27+
# Copy the plugin format directories directly from the extracted source directory
28+
cp -r oscilloscope-snapshot-linux-fedora/VST3/* %{buildroot}/usr/lib/vst3/
29+
cp -r oscilloscope-snapshot-linux-fedora/LV2/* %{buildroot}/usr/lib/lv2/
30+
cp -r oscilloscope-snapshot-linux-fedora/CLAP/* %{buildroot}/usr/lib/clap/
31+
32+
# Install the license file
33+
if [ -f "LICENSE" ]; then
34+
install -Dm644 LICENSE %{buildroot}/usr/share/licenses/%{name}/LICENSE
35+
else
36+
curl -L "https://raw.githubusercontent.com/Dimethoxy/Oscilloscope/main/LICENSE" -o %{buildroot}/usr/share/licenses/%{name}/LICENSE
37+
fi
38+
39+
%files
40+
/usr/lib/vst3/Oscilloscope
41+
/usr/lib/lv2/Oscilloscope
42+
/usr/lib/clap/Oscilloscope
43+
/usr/share/licenses/%{name}/LICENSE

pkg/mac/placeholde.md

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Placeholder

pkg/ubuntu/control

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
Package: dimethoxy-oscilloscope-snapshot
2+
Version: 1.0-1
3+
Architecture: amd64
4+
Maintainer: David Hess (Lunix) <[email protected]>
5+
Depends: curl
6+
Priority: optional
7+
Section: sound
8+
Description: Oscilloscope Analyzer for VST3, CLAP and LV2 compatible hosts

pkg/windows/placeholde.md

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Placeholder

0 commit comments

Comments
 (0)