Rename xorg-libinput to xf86-input-libinput

This commit is contained in:
2025-07-20 18:52:19 +03:00
parent 7e28977485
commit 7b20aa0b4f
2 changed files with 23 additions and 1 deletions
+21
View File
@@ -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"
+2 -1
View File
@@ -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