summaryrefslogtreecommitdiffstats
path: root/xdg-desktop-portal-gtk
diff options
context:
space:
mode:
Diffstat (limited to 'xdg-desktop-portal-gtk')
-rwxr-xr-xxdg-desktop-portal-gtk/build/xdg-desktop-portal-gtk.SlackBuild12
1 files changed, 11 insertions, 1 deletions
diff --git a/xdg-desktop-portal-gtk/build/xdg-desktop-portal-gtk.SlackBuild b/xdg-desktop-portal-gtk/build/xdg-desktop-portal-gtk.SlackBuild
index 8ab6a054..e6133ffc 100755
--- a/xdg-desktop-portal-gtk/build/xdg-desktop-portal-gtk.SlackBuild
+++ b/xdg-desktop-portal-gtk/build/xdg-desktop-portal-gtk.SlackBuild
@@ -41,13 +41,23 @@
# -----------------------------------------------------------------------------
PRGNAM=xdg-desktop-portal-gtk
-VERSION=${VERSION:-1.14.0}
+VERSION_CUR=${VERSION_CUR:-1.14.0}
+VERSION_150=${VERSION_150:-1.12.0}
BUILD=${BUILD:-1}
NUMJOBS=${NUMJOBS:-" -j$(nproc) "}
TAG=${TAG:-alien}
DOCS="COPYING INSTALL NEWS"
+if [ -z "$VERSION" ]; then
+ eval $(grep -E '(^VERSION_ID=|^VERSION_CODENAME=)' /etc/os-release)
+ if [ "$VERSION_ID" == "15.0" ] && [ "$VERSION_CODENAME" == "stable" ]; then
+ VERSION=$VERSION_150
+ else
+ VERSION=$VERSION_CUR
+ fi
+fi
+
# Where do we look for sources?
SRCDIR=$(cd $(dirname $0); pwd)