Rebuild with hidapi

This commit is contained in:
2025-09-19 13:55:33 +03:00
parent 50c0964eea
commit 7645c9150b
2 changed files with 8 additions and 11 deletions
+6 -10
View File
@@ -15,25 +15,21 @@ prepare() {
# The build function is executed in the source directory
# This function is used to compile the source code
build() {
mkdir build
cd build
cmake -DCMAKE_INSTALL_PREFIX=/usr \
cmake -B build \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=Release \
-DSDL_TEST_LIBRARY=OFF \
-DSDL_STATIC=OFF \
-DSDL_RPATH=OFF \
-Wno-dev \
-G Ninja ..
ninja
-Wno-dev
cmake --build build
}
# The package function is executed in the source directory
# This function is used to move the compiled files into the output directory
package() {
cd build
DESTDIR="$BPM_OUTPUT" ninja install
DESTDIR="$BPM_OUTPUT" cmake --install build
# Install package license
install -Dm644 "$BPM_SOURCE"/LICENSE.txt "$BPM_OUTPUT"/usr/share/licenses/sdl2/LICENSE.txt
}