Update dependencies and split package

This commit is contained in:
2026-01-05 22:21:22 +02:00
parent b15e1e21c1
commit d3f843f042
2 changed files with 59 additions and 5 deletions
+28 -3
View File
@@ -8,9 +8,9 @@ build() {
meson setup build --prefix=/usr \
--libdir=/usr/lib \
--buildtype=release \
-Ddebug-gui=false \
-Ddebug-gui=true \
-Dtests=true \
-Dlibwacom=false \
-Dlibwacom=true \
-Dudev-dir=/usr/lib/udev
meson compile -C build
}
@@ -21,9 +21,34 @@ check() {
meson test -C build --print-errorlogs
}
_pick() {
local p="$1" f d; shift
for f; do
[ -d "$BPM_WORKDIR"/output_"$p" ] || { echo "Split package $p not found"; exit 1; }
d="$BPM_WORKDIR"/output_"$p"/"${f#$BPM_OUTPUT}"
mkdir -p "$(dirname "$d")"
mv "$f" "$d"
rmdir -p --ignore-fail-on-non-empty "$(dirname "$f")"
done
}
# The package function is executed in the source directory
# This function is used to move the compiled files into the output directory
package() {
package_libinput() {
meson install -C build --destdir="$BPM_OUTPUT"
cd "$BPM_OUTPUT"
# Move debug tools to separate package
_pick libinput-tools usr/bin
_pick libinput-tools usr/libexec
_pick libinput-tools usr/share/man
_pick libinput-tools usr/share/zsh
# Install package license
install -Dm644 "$BPM_SOURCE"/COPYING "$BPM_OUTPUT"/usr/share/licenses/libinput/COPYING
}
package_libinput-tools() {
meson install -C build --destdir="$BPM_OUTPUT"
# Install package license