Update package version to 255.22

This commit is contained in:
2025-11-21 14:51:24 +02:00
parent 9d0dbe6784
commit c815e0a958
3 changed files with 58 additions and 23 deletions
+25 -5
View File
@@ -28,14 +28,29 @@ check() {
meson test -C build $test_list
}
_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_elogind() {
meson install -C build --destdir="$BPM_OUTPUT"
# Create symlink for systemd compatibility
mkdir "$BPM_OUTPUT"/usr/include/systemd/
ln -sfn elogind "$BPM_OUTPUT"/usr/include/systemd/elogind
cd "$BPM_OUTPUT"
# Move client library files into split package
_pick libelogind usr/lib/libelogind*.so*
_pick libelogind usr/lib/pkgconfig
_pick libelogind usr/include
_pick libelogind usr/share/man/man3
# Install pam module
install -Dm644 "$BPM_WORKDIR"/elogind-user "$BPM_OUTPUT"/etc/pam.d/elogind-user
@@ -44,5 +59,10 @@ package() {
install -Dm644 "$BPM_WORKDIR"/elogind.esv "$BPM_OUTPUT"/etc/esvm/services/elogind.esv
# Install package license
install -Dm644 "$BPM_SOURCE"/LICENSE.{GPL2,LGPL2.1} -t "$BPM_OUTPUT"/usr/share/licenses/elogind/elogind
install -Dm644 "$BPM_SOURCE"/LICENSE.{GPL2,LGPL2.1} -t "$BPM_OUTPUT"/usr/share/licenses/elogind
}
package_libelogind() {
# Install package license
install -Dm644 "$BPM_SOURCE"/LICENSE.LGPL2.1 -t "$BPM_OUTPUT"/usr/share/licenses/libelogind
}