Rebuild with hidapi
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user