diff --git a/check-version.sh b/check-version.sh new file mode 100644 index 0000000..b5ef907 --- /dev/null +++ b/check-version.sh @@ -0,0 +1,15 @@ +#!/bin/bash + +# Gitlab repository +REPO="clint/fakeroot" + +# 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://salsa.debian.org/api/v4/projects/"$REPO"/repository/tags | jq -r '.[].name' | grep "upstream/" | head -n1) + +# Trim 'upstream/' suffix +VERSION=$(echo "$TAG_NAME" | cut -d '/' -f2) + +echo "$VERSION" diff --git a/pkg.info b/pkg.info index 1674656..14d5384 100644 --- a/pkg.info +++ b/pkg.info @@ -1,7 +1,9 @@ name: fakeroot description: A tool for simulating superuser privileges -version: 1.31 +version: 1.37.1.2 url: https://tracker.debian.org/pkg/fakeroot license: GPL3 architecture: any +depends: ["glibc"] +make_depends: ["sharutils"] type: source