diff options
author | Ozan Türkyılmaz <ozan.turkyilmaz@gmail.com> | 2022-05-12 18:06:20 +0300 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2022-05-14 19:27:53 +0700 |
commit | 9cdc521ff70ee078eee5ab9491bf405c971d4bce (patch) | |
tree | 4ed121e78dbc14a782cb4785626ba5abf0532c43 /libraries/geocode-glib | |
parent | 7a0d559efed6058ec7dc3a1ded60b824a1569077 (diff) | |
download | slackbuilds-9cdc521ff70ee078eee5ab9491bf405c971d4bce.tar.gz |
libraries/geocode-glib: Use yes/no for build options
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'libraries/geocode-glib')
-rw-r--r-- | libraries/geocode-glib/README | 6 | ||||
-rw-r--r-- | libraries/geocode-glib/geocode-glib.SlackBuild | 31 |
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 .. |