Skip to content

Commit

Permalink
fix hvcc
Browse files Browse the repository at this point in the history
  • Loading branch information
ycollet committed Jan 24, 2024
1 parent 7c2dcc4 commit 08ed3bf
Show file tree
Hide file tree
Showing 3 changed files with 85 additions and 2 deletions.
29 changes: 29 additions & 0 deletions pure-data/hvcc-Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@

all: hvcc plugins

PLUGIN = vSwell vSwellST

DEST_LV2 = .lv2
DEST_VST = .vst
DEST_CLAP = .clap
HM = ~/

plugins: hvcc
$(foreach var, $(PLUGIN), make -C $(var)/ features;)
$(foreach var, $(PLUGIN), make -C $(var)/ $(MAKECMDGOALS);)

hvcc:
$(foreach var, $(PLUGIN), hvcc $(var).pd -n $(var) -m $(var).json -o $(var) -g dpf -p ./ dep/heavylib;)

binmove:
mkdir bin
$(foreach var, $(PLUGIN), mv $(var)/bin/* bin/;)

install:
$(foreach var, $(PLUGIN), rm -rf $(HM)$(DEST_LV2)/$(var).lv2 ;)
$(foreach var, $(PLUGIN), cp -r $(var)/bin/$(var).lv2 $(HM)$(DEST_LV2)/ ;)
$(foreach var, $(PLUGIN), rm -rf $(HM)$(DEST_VST)/$(var)-vst.so ;)
$(foreach var, $(PLUGIN), cp -r $(var)/bin/$(var)-vst.so $(HM)$(DEST_VST)/ ;)
$(foreach var, $(PLUGIN), rm -rf $(HM)$(DEST_CLAP)/$(var).clap ;)
$(foreach var, $(PLUGIN), cp -r $(var)/bin/$(var).clap $(HM)$(DEST_CLAP)/ ;)

7 changes: 5 additions & 2 deletions pure-data/hvcc.spec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Name: hvcc
Version: 0.10.0
Release: 1%{?dist}
Release: 2%{?dist}
Summary: The heavy hvcc compiler for Pure Data patches.
URL: https://github.com/Wasted-Audio/hvcc
License: GPL-3.0-or-later
Expand All @@ -18,7 +18,7 @@ BuildRequires: desktop-file-utils

Requires: python3-jinja2
Requires: python3-importlib-resources
Requires: python3-json2daisy
Requires: python3-wstd2daisy
Requires: python3-setuptools
Requires: puredata

Expand Down Expand Up @@ -59,6 +59,9 @@ rm -rf %{buildroot}/%{python3_sitelib}/tests
%{_datadir}/%{name}/examples/*

%changelog
* Wed Jan 24 2024 Yann Collette <ycollette.nospam@free.fr> - 0.10.0-2
- update to 0.10.0-2 - fix python deps

* Wed Dec 06 2023 Yann Collette <ycollette.nospam@free.fr> - 0.10.0-1
- update to 0.10.0-1

Expand Down
51 changes: 51 additions & 0 deletions python/wstd2daisy.spec
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
# Tag: Library, Devel
# Type: Devel
# Category: Programming

%global __python %{__python3}

Name: python-wstd2daisy
Version: 0.5.1
Release: 1%{?dist}
Summary: Utility for converting JSON board definitions into valid, libDaisy compatible C++ board support files for the Daisy platform.
License: MIT
URL: https://github.com/Wasted-Audio/json2daisy

Source0: %{pypi_source wstd2daisy}

BuildArch: noarch

BuildRequires: python3-devel
BuildRequires: pyproject-rpm-macros

%description
Utility for converting JSON board definitions into valid,
libDaisy compatible C++ board support files for the Daisy platform.

%package -n python3-wstd2daisy
Summary: %{summary}

%description -n python3-wstd2daisy
Utility for converting JSON board definitions into valid,
libDaisy compatible C++ board support files for the Daisy platform.

%prep
%autosetup -n wstd2daisy-%{version}

%generate_buildrequires
%pyproject_buildrequires -r

%build
%pyproject_wheel

%install
%pyproject_install
%pyproject_save_files json2daisy

%files -n python3-wstd2daisy -f %{pyproject_files}
%license LICENSE
%doc README.md

%changelog
* Wed Jan 24 2024 Yann Collette <ycollette.nospam@free.fr> - 0.5.1-1
- Initial release

0 comments on commit 08ed3bf

Please sign in to comment.