Rename xorg-libinput to xf86-input-libinput
This commit is contained in:
@@ -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"
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
name: xorg-libinput
|
name: xf86-input-libinput
|
||||||
description: Generic input driver for the X.org server based on libinput
|
description: Generic input driver for the X.org server based on libinput
|
||||||
version: 1.5.0
|
version: 1.5.0
|
||||||
url: http://xorg.freedesktop.org/
|
url: http://xorg.freedesktop.org/
|
||||||
@@ -6,4 +6,5 @@ license: MIT
|
|||||||
architecture: any
|
architecture: any
|
||||||
depends: ["glibc","libinput"]
|
depends: ["glibc","libinput"]
|
||||||
make_depends: ["xorg-server","libx11","libxi","xorgproto"]
|
make_depends: ["xorg-server","libx11","libxi","xorgproto"]
|
||||||
|
replaces: ["xorg-libinput"]
|
||||||
type: source
|
type: source
|
||||||
|
|||||||
Reference in New Issue
Block a user