diff --git a/check-version.sh b/check-version.sh new file mode 100644 index 0000000..db0005a --- /dev/null +++ b/check-version.sh @@ -0,0 +1,21 @@ +#!/bin/bash + +# Gitlab repository +REPO="xorg/xserver" + +# 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 '[.[] | select(.name|startswith("xorg-server"))][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 73c60f2..770e0a7 100644 --- a/pkg.info +++ b/pkg.info @@ -1,9 +1,9 @@ name: xorg-server description: The X.org X server -version: 21.1.16 +version: 21.1.18 url: https://xorg.freedesktop.org/ license: BSD-3-Clause,HPND,HPND-sell-variant,ICU,ISC,LicenseRef-Adobe-Display-PostScript,LicenseRef-DEC-3-Clause,LicenseRef-HPND-sell-MIT-disclaimer-xserver,MIT,MIT-open-group,NTP,SGI-B-2.0,SMLNJ,X11,X11-distribute-modifications-variant architecture: any -depends: ["dbus","glibc","libdrm","elogind","libglvnd","libepoxy","libpciaccess","libtirpc","libxau","libxcvt","libxdmcp","libxfont2","libxshmfence","nettle","pixman","bash","xkeyboard-config","xorg-libinput","xorg-setxkbmap","xorg-xkbcomp"] +depends: ["dbus","glibc","libdrm","elogind","libglvnd","libepoxy","libpciaccess","libtirpc","libxau","libxcvt","libxdmcp","libxfont2","libxshmfence","nettle","pixman","bash","xkeyboard-config","xf86-input-libinput","xorg-setxkbmap","xorg-xkbcomp"] make_depends: ["libx11","libxaw","libxi","libxmu","libxrender","libxres","libxtst","libxv","mesa","meson","xcb-util","xcb-util-image","xcb-util-keysyms","xcb-util-renderutil","xcb-util-wm","xorg-fonts-util","xorg-util-macros","xorgproto","xtrans"] type: source