summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
author Ozan Türkyılmaz2022-05-12 17:06:20 +0200
committer Willy Sudiarto Raharjo2022-05-14 14:27:53 +0200
commit9cdc521ff70ee078eee5ab9491bf405c971d4bce (patch)
tree4ed121e78dbc14a782cb4785626ba5abf0532c43
parent7a0d559efed6058ec7dc3a1ded60b824a1569077 (diff)
downloadslackbuilds-9cdc521ff70ee078eee5ab9491bf405c971d4bce.tar.gz
libraries/geocode-glib: Use yes/no for build options
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
-rw-r--r--libraries/geocode-glib/README6
-rw-r--r--libraries/geocode-glib/geocode-glib.SlackBuild31
2 files changed, 28 insertions, 9 deletions
diff --git a/libraries/geocode-glib/README b/libraries/geocode-glib/README
index 6a7e5196f1..b4915ed7c4 100644
--- a/libraries/geocode-glib/README
+++ b/libraries/geocode-glib/README
@@ -5,6 +5,6 @@ achieve that. It also caches (reverse-)geocoding requests for faster
results and to avoid unnecessary server load.
Below variables can be used to configure the build:
- GTKDOC=true : Builds gtkdocs
- INSTROSPECTION=true : Enables the introspection generation
- TESTS=true : Build & install test programs
+ GTKDOC=yes : Builds gtkdocs
+ INSTROSPECTION=yes : Enables the introspection generation
+ TESTS=yes : Build & install test programs
diff --git a/libraries/geocode-glib/geocode-glib.SlackBuild b/libraries/geocode-glib/geocode-glib.SlackBuild
index 2bb24c0427..cbd31f8f9e 100644
--- a/libraries/geocode-glib/geocode-glib.SlackBuild
+++ b/libraries/geocode-glib/geocode-glib.SlackBuild
@@ -30,9 +30,28 @@ BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
-GTKDOC=${GTKDOC:-false}
-INSTROSPECTION=${INSTROSPECTION:-false}
-TESTS=${TESTS:-false}
+GTKDOC=${GTKDOC:-no}
+INSTROSPECTION=${INSTROSPECTION:-no}
+TESTS=${TESTS:-no}
+
+if [ "$GTKDOC" = "yes" ]; then
+ GTKDOCP="true"
+else
+ GTKDOCP="false"
+fi
+
+if [ "$INSTROSPECTION" = "yes" ]; then
+ INSTROSPECTIONP="true"
+else
+ INSTROSPECTIONP="false"
+fi
+
+if [ "$TESTS" = "yes" ]; then
+ TESTSP="true"
+else
+ TESTSP="false"
+fi
+
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
@@ -96,9 +115,9 @@ cd build
--prefix=/usr \
--sysconfdir=/etc \
-Dstrip=true \
- -Denable-introspection="$INSTROSPECTION" \
- -Denable-gtk-doc="$GTKDOC" \
- -Denable-installed-tests="$TESTS"
+ -Denable-introspection="$INSTROSPECTIONP" \
+ -Denable-gtk-doc="$GTKDOCP" \
+ -Denable-installed-tests="$TESTSP"
"${NINJA:=ninja}"
DESTDIR=$PKG $NINJA install
cd ..