From cabcfabac3d2743da24eeb07cd558628a2edd92e Mon Sep 17 00:00:00 2001 From: EnumDev Date: Sun, 8 Mar 2026 17:16:41 +0200 Subject: [PATCH] Switch to new download format and rebuild without libxkbfile.la --- pkg.info | 27 +++++++++++++++++++++++---- source.sh | 11 +---------- 2 files changed, 24 insertions(+), 14 deletions(-) diff --git a/pkg.info b/pkg.info index e9cc42a..010a9b2 100644 --- a/pkg.info +++ b/pkg.info @@ -1,10 +1,29 @@ name: libxklavier description: High-level API library for X Keyboard Extension -version: 5.4 -revision: 2 +version: "5.4" +revision: 3 url: https://www.freedesktop.org/wiki/Software/LibXklavier/ license: LGPL2 +maintainers: + - enumdev@enumerated.dev architecture: any -depends: ["glib","glibc","iso-codes","libx11","libxi","libxkbfile","libxml2","xkeyboard-config","xorg-xkbcomp"] -make_depends: ["gobject-introspection","intltool"] type: source +depends: + - glib + - glibc + - iso-codes + - libx11 + - libxi + - libxkbfile + - libxml2 + - xkeyboard-config + - xorg-xkbcomp +make_depends: + - bzip2 + - gobject-introspection + - intltool +downloads: + - url: https://people.freedesktop.org/~svu/libxklavier-${BPM_PKG_VERSION}.tar.bz2 + extract_to: ${BPM_SOURCE} + extract_strip_components: 1 + checksum: 17a34194df5cbcd3b7bfd0f561d95d1f723aa1c87fca56bc2c209514460a9320 diff --git a/source.sh b/source.sh index 0492edc..b33abfd 100644 --- a/source.sh +++ b/source.sh @@ -2,16 +2,6 @@ # BPM Expects the source code to be extracted into the automatically created 'source' directory which can be accessed using $BPM_SOURCE # BPM Expects the output files to be present in the automatically created 'output' directory which can be accessed using $BPM_OUTPUT -DOWNLOAD="https://people.freedesktop.org/~svu/libxklavier-${BPM_PKG_VERSION}.tar.bz2" -FILENAME="${DOWNLOAD##*/}" - -# The prepare function is executed in the root of the temp directory -# This function is used for downloading files and putting them into the correct location -prepare() { - wget "$DOWNLOAD" - tar -xvf "$FILENAME" --strip-components=1 -C "$BPM_SOURCE" -} - # The build function is executed in the source directory # This function is used to compile the source code build() { @@ -24,5 +14,6 @@ build() { package() { make DESTDIR="$BPM_OUTPUT" install + # Install package license install -Dm644 "$BPM_SOURCE"/COPYING.LIB "$BPM_OUTPUT"/usr/share/licenses/libxklavier/COPYING.LIB }