Update dependencies and split package
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
name: libinput
|
name: libinput
|
||||||
description: Input device management and event handling library
|
description: Input device management and event handling library
|
||||||
version: 1.30.1
|
version: 1.30.1
|
||||||
revision: 2
|
revision: 3
|
||||||
url: https://gitlab.freedesktop.org/libinput/libinput
|
url: https://gitlab.freedesktop.org/libinput/libinput
|
||||||
license: MIT
|
license: MIT
|
||||||
architecture: any
|
architecture: any
|
||||||
@@ -9,15 +9,44 @@ type: source
|
|||||||
depends:
|
depends:
|
||||||
- glibc
|
- glibc
|
||||||
- libevdev
|
- libevdev
|
||||||
|
- libwacom
|
||||||
- mtdev
|
- mtdev
|
||||||
- udev
|
- udev
|
||||||
make_depends:
|
make_depends:
|
||||||
|
- cairo
|
||||||
- check
|
- check
|
||||||
|
- glib
|
||||||
|
- gtk4
|
||||||
|
- libx11
|
||||||
- meson
|
- meson
|
||||||
- wayland-protocols
|
- python3
|
||||||
|
- python-libevdev
|
||||||
|
- python-pyudev
|
||||||
|
- python-pyyaml
|
||||||
- python-pytest
|
- python-pytest
|
||||||
|
- wayland
|
||||||
|
- wayland-protocols
|
||||||
downloads:
|
downloads:
|
||||||
- url: https://gitlab.freedesktop.org/libinput/libinput/-/archive/${BPM_PKG_VERSION}/libinput-${BPM_PKG_VERSION}.tar.gz
|
- url: https://gitlab.freedesktop.org/libinput/libinput/-/archive/${BPM_PKG_VERSION}/libinput-${BPM_PKG_VERSION}.tar.gz
|
||||||
extract_to: ${BPM_SOURCE}
|
extract_to: ${BPM_SOURCE}
|
||||||
extract_strip_components: 1
|
extract_strip_components: 1
|
||||||
checksum: 4339a2b9cc96ede3c120dedaedc61e48ce567808c5229e66587525ea972ef617
|
checksum: 4339a2b9cc96ede3c120dedaedc61e48ce567808c5229e66587525ea972ef617
|
||||||
|
split_packages:
|
||||||
|
- name: libinput
|
||||||
|
- name: libinput-tools
|
||||||
|
description: Debug tools for libinput
|
||||||
|
depends:
|
||||||
|
- cairo
|
||||||
|
- gcc-libs
|
||||||
|
- glib
|
||||||
|
- glibc
|
||||||
|
- gtk4
|
||||||
|
- libevdev
|
||||||
|
- libinput
|
||||||
|
- libx11
|
||||||
|
- python3
|
||||||
|
- python-libevdev
|
||||||
|
- python-pyudev
|
||||||
|
- python-pyyaml
|
||||||
|
- udev
|
||||||
|
- wayland
|
||||||
|
|||||||
@@ -8,9 +8,9 @@ build() {
|
|||||||
meson setup build --prefix=/usr \
|
meson setup build --prefix=/usr \
|
||||||
--libdir=/usr/lib \
|
--libdir=/usr/lib \
|
||||||
--buildtype=release \
|
--buildtype=release \
|
||||||
-Ddebug-gui=false \
|
-Ddebug-gui=true \
|
||||||
-Dtests=true \
|
-Dtests=true \
|
||||||
-Dlibwacom=false \
|
-Dlibwacom=true \
|
||||||
-Dudev-dir=/usr/lib/udev
|
-Dudev-dir=/usr/lib/udev
|
||||||
meson compile -C build
|
meson compile -C build
|
||||||
}
|
}
|
||||||
@@ -21,9 +21,34 @@ check() {
|
|||||||
meson test -C build --print-errorlogs
|
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
|
# The package function is executed in the source directory
|
||||||
# This function is used to move the compiled files into the output 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"
|
meson install -C build --destdir="$BPM_OUTPUT"
|
||||||
|
|
||||||
# Install package license
|
# Install package license
|
||||||
|
|||||||
Reference in New Issue
Block a user