summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 ..