From 7b20aa0b4f96f5e429231492eebb5eddb8b73350 Mon Sep 17 00:00:00 2001 From: EnumDev Date: Sun, 20 Jul 2025 18:52:19 +0300 Subject: [PATCH] Rename xorg-libinput to xf86-input-libinput --- check-version.sh | 21 +++++++++++++++++++++ pkg.info | 3 ++- 2 files changed, 23 insertions(+), 1 deletion(-) create mode 100644 check-version.sh diff --git a/check-version.sh b/check-version.sh new file mode 100644 index 0000000..91f46cc --- /dev/null +++ b/check-version.sh @@ -0,0 +1,21 @@ +#!/bin/bash + +# Gitlab repository +REPO="xorg/driver/xf86-input-libinput" + +# Replace slash with URL encoded representation +REPO=$(echo "$REPO" | sed 's|/|%2F|g') + +# Get tag name using Gitlab Rest API +TAG_NAME=$(curl -s -L https://gitlab.freedesktop.org/api/v4/projects/"$REPO"/repository/tags | jq -r '.[0].name') + +# Trim '-gitlab' suffix +TAG_NAME=$(echo "$TAG_NAME" | sed 's/-gitlab//g') + +# Get version number from tag name +VERSION=$(echo "$TAG_NAME" | rev | cut -d'-' -f1 | rev) + +# Trim 'v' character in VERSION variable +VERSION=$(echo "$VERSION" | tr -d 'v') + +echo "$VERSION" diff --git a/pkg.info b/pkg.info index c3c0c27..7046dd4 100644 --- a/pkg.info +++ b/pkg.info @@ -1,4 +1,4 @@ -name: xorg-libinput +name: xf86-input-libinput description: Generic input driver for the X.org server based on libinput version: 1.5.0 url: http://xorg.freedesktop.org/ @@ -6,4 +6,5 @@ license: MIT architecture: any depends: ["glibc","libinput"] make_depends: ["xorg-server","libx11","libxi","xorgproto"] +replaces: ["xorg-libinput"] type: source