diff options
author | Ozan Türkyılmaz <ozan.turkyilmaz@gmail.com> | 2022-05-15 10:51:23 +0300 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2022-05-21 08:25:36 +0700 |
commit | 94e59d4b2f2819cd6b6d755d0fcc40a724ad6d35 (patch) | |
tree | 5accaa783015c8de6c75f2fab6d2aa028762a792 /libraries/libgweather | |
parent | 213629dbe8f7ea9c792283bccde3d5bbbd0da336 (diff) |
libraries/libgweather Use yes/no for build options
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'libraries/libgweather')
-rw-r--r-- | libraries/libgweather/README | 6 | ||||
-rw-r--r-- | libraries/libgweather/libgweather.SlackBuild | 42 |
2 files changed, 32 insertions, 16 deletions
diff --git a/libraries/libgweather/README b/libraries/libgweather/README index 4abffb475f81b..5e144a8468879 100644 --- a/libraries/libgweather/README +++ b/libraries/libgweather/README @@ -2,6 +2,6 @@ libgweather is a library to access weather information from online services for numerous locations. Below variables can be used to configure the build: - GTKDOC=true : Generate the API reference - OWPAPI=APIKEY : Specify an API key for OpenWeatherMap - GLADE_CATALOG=true : Install a glade catalog file + GTKDOC=yes : Generate the API reference + OWNAPI=APIKEY : Specify an API key for OpenWeatherMap + GLADE_CATALOG=yes : Install a glade catalog file diff --git a/libraries/libgweather/libgweather.SlackBuild b/libraries/libgweather/libgweather.SlackBuild index e9f274727ca9f..aa94ab15248c3 100644 --- a/libraries/libgweather/libgweather.SlackBuild +++ b/libraries/libgweather/libgweather.SlackBuild @@ -26,16 +26,32 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=libgweather VERSION=${VERSION:-40.0} -BUILD=${BUILD:-2} +BUILD=${BUILD:-3} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} -OWPAPI=${OWPAPI:-false} -VALA=${VALA:-false} -GTKDOC=${GTKDOC:-false} -INTROSPECTION=${INTROSPECTION:-false} -TESTS=${TESTS:-false} -GLADE_CATALOG=${GLADE_CATALOG:-false} +OWNAPI=${OWPAPI:-no} +VALA=${VALA:-no} +GTKDOC=${GTKDOC:-no} +GLADE_CATALOG=${GLADE_CATALOG:-no} + +if [ "$VALA" = "yes" ]; then + VALAP="true" +else + VALAP="false" +fi + +if [ "$GTKDOC" = "yes" ]; then + GTKDOCP="true" +else + GTKDOCP="false" +fi + +if [ "$GLADE_CATALOG" = "yes" ]; then + GLADE_CATALOGP="true" +else + GLADE_CATALOGP="false" +fi if [ -z "$ARCH" ]; then case "$( uname -m )" in @@ -50,10 +66,10 @@ if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then exit 0 fi -if [ "$OWPAPI" = "false" ]; then +if [ "$OWNAPI" = "no" ]; then OWNAPILINE="-Dstrip=true" else - OWPAPILINE="-Dowm_apikey=$OWPAPI" + OWNAPILINE="-Dowm_apikey=$OWNAPI" fi TMP=${TMP:-/tmp/SBo} @@ -102,10 +118,10 @@ cd build --prefix=/usr \ --sysconfdir=/etc \ -Dstrip=true \ - $OWPAPILINE \ - -Denable_vala="$VALA" \ - -Dgtk_doc="$GTKDOC" \ - -Dglade_catalog="$GLADE_CATALOG" + $OWNAPILINE \ + -Denable_vala="$VALAP" \ + -Dgtk_doc="$GTKDOCP" \ + -Dglade_catalog="$GLADE_CATALOGP" "${NINJA:=ninja}" DESTDIR=$PKG $NINJA install |