summaryrefslogtreecommitdiffstats
path: root/xdg-desktop-portal-gtk
diff options
context:
space:
mode:
author Eric Hameleers <alien@slackware.com>2022-10-23 11:30:33 +0000
committer Eric Hameleers <alien@slackware.com>2022-10-23 11:30:33 +0000
commitac72496fafa76bf17b87f499b62b2df7abf6e2f4 (patch)
treeb7de9d0f4d63dd38b1a6ace47b22b644831525cc /xdg-desktop-portal-gtk
parentca83de7a7d0f5aefbd6153a179f883e0f7234c61 (diff)
downloadasb-ac72496fafa76bf17b87f499b62b2df7abf6e2f4.tar.gz
asb-ac72496fafa76bf17b87f499b62b2df7abf6e2f4.tar.xz
xdg-desktop-portal-gtk: automatically build the appropriate version for both Slackware 15.0 and -current
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)