From 2d049408a1df42907c012409c9b52bebb8bbd1b2 Mon Sep 17 00:00:00 2001 From: EnumDev Date: Mon, 8 Sep 2025 22:02:40 +0300 Subject: [PATCH] Update package version to 257.9 --- check-version.sh | 12 ++++++++++++ pkg.info | 3 +-- source.sh | 2 +- 3 files changed, 14 insertions(+), 3 deletions(-) create mode 100644 check-version.sh diff --git a/check-version.sh b/check-version.sh new file mode 100644 index 0000000..6d7f561 --- /dev/null +++ b/check-version.sh @@ -0,0 +1,12 @@ +#!/bin/bash + +# Github repository +REPO="systemd/systemd" + +# Get tag name using Github Rest API +TAG_NAME=$(curl -s -L -H "X-GitHub-Api-Version: 2022-11-28" -H "Authorization: token ${GITHUB_API_TOKEN}" https://api.github.com/repos/"$REPO"/releases/latest | jq -r '.tag_name') + +# Trim 'v' character in TAG_NAME variable +VERSION=$(echo "$TAG_NAME" | tr -d 'v') + +echo "$VERSION" diff --git a/pkg.info b/pkg.info index bf6ebf7..98874cb 100644 --- a/pkg.info +++ b/pkg.info @@ -1,7 +1,6 @@ name: udev description: Userspace device file manager -version: 256 -revision: 2 +version: 257.9 url: https://github.com/systemd/systemd license: GPL-2.0-or-later,LGPL-2.1-or-later architecture: any diff --git a/source.sh b/source.sh index 0bdc283..bc4d8d2 100644 --- a/source.sh +++ b/source.sh @@ -17,7 +17,7 @@ prepare() { build() { sed -i -e 's/GROUP="render"/GROUP="video"/' -e 's/GROUP="sgx", //' rules.d/50-udev-default.rules.in sed '/systemd-sysctl/s/^/#/' -i rules.d/99-systemd.rules.in - sed '/NETWORK_DIRS/s/systemd/udev/' -i src/basic/path-lookup.h + sed '/NETWORK_DIRS/s/systemd/udev/' -i src/libsystemd/sd-network/network-util.h mkdir build cd build