chore(epsonscan2): Working CMake macro (#4644)

* chore(epsonscan2): Working CMake macro, move to system since this contains drivers

* fix: Unsure what happened there, average Gilver curse

* a

* feat: Fully switch to CMake

Signed-off-by: Gilver <rockgrub@disroot.org>

---------

Signed-off-by: Gilver <rockgrub@disroot.org>
This commit is contained in:
Gilver
2025-05-05 00:24:07 -05:00
committed by GitHub
parent 910e697ead
commit f3b8def178
2 changed files with 4 additions and 4 deletions
@@ -58,15 +58,15 @@ rpm2cpio plugins/*.rpm | cpio -idmv
%build
# CMake macro fails to generate the build files somehow? This works however. I don't really understand.
cmake . \
%cmake \
-DBUILD_TYPE=Release
%make_build
%cmake_build
%install
%make_install
%cmake_install
# The Makefile fails to do these steps correctly but just using CMake was even more problematic.
# The CMakeLists.txt fails to do these steps correctly.
# The file is also very annoying to patch. Thank God this doesn't seem to update anymore.
mkdir -p %{buildroot}%{_udevrulesdir}
mv %{buildroot}/lib/udev/rules.d/60-%{name}.rules -t %{buildroot}%{_udevrulesdir}