Update dependencies and source.sh script

This commit is contained in:
2025-12-27 10:50:07 +02:00
parent fa246cd763
commit cfe9c45d8c
2 changed files with 8 additions and 15 deletions
+5 -13
View File
@@ -5,29 +5,21 @@
# The build function is executed in the source directory
# This function is used to compile the source code
build() {
mkdir build
cd build
meson setup --prefix=/usr \
--libdir=/usr/lib \
--buildtype=release \
-Ddocumentation=disabled \
..
ninja
meson setup --prefix=/usr -Ddocumentation=disabled build
meson compile -C build
}
# The check function is executed in the source directory
# This function is used to run tests to verify the package has been compiled correctly
check() {
cd build
ninja test
meson test -C 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
meson install -C build --destdir="$BPM_OUTPUT"
# Install package license
install -Dm644 "$BPM_SOURCE"/COPYING "$BPM_OUTPUT"/usr/share/licenses/libevdev/COPYING
}