From a69f948e6660a831b81017477cb17603f0d0b71c Mon Sep 17 00:00:00 2001 From: Ozan Türkyılmaz Date: Thu, 12 May 2022 14:04:32 +0300 Subject: libraries/gnome-autoar: Use yes/no for build options Signed-off-by: Willy Sudiarto Raharjo --- libraries/gnome-autoar/README | 8 ++--- libraries/gnome-autoar/gnome-autoar.SlackBuild | 42 ++++++++++++++++++++------ 2 files changed, 37 insertions(+), 13 deletions(-) diff --git a/libraries/gnome-autoar/README b/libraries/gnome-autoar/README index db725e08a4..e0b27ce032 100644 --- a/libraries/gnome-autoar/README +++ b/libraries/gnome-autoar/README @@ -13,7 +13,7 @@ are: preferences settings. Below variables can be used to configure the build: - INTROSPECTION=enabled : Build introspection support - GTKDOC=true : Build GTK Doc reference - TESTS=true : Build tests - VAPI=true : Build vala bindings + INTROSPECTION=yes : Build introspection support + GTKDOC=yes : Build GTK Doc reference + TESTS=yes : Build tests + VAPI=yes : Build vala bindings diff --git a/libraries/gnome-autoar/gnome-autoar.SlackBuild b/libraries/gnome-autoar/gnome-autoar.SlackBuild index addd3315b4..cc5b4f50f2 100644 --- a/libraries/gnome-autoar/gnome-autoar.SlackBuild +++ b/libraries/gnome-autoar/gnome-autoar.SlackBuild @@ -26,14 +26,38 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=gnome-autoar VERSION=${VERSION:-0.4.3} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} -INTROSPECTION=${INTROSPECTION:-disabled} -GTKDOC=${GTKDOC:-false} -TESTS=${TESTS:-false} -VAPI=${VAPI:-false} +INTROSPECTION=${INTROSPECTION:-no} +GTKDOC=${GTKDOC:-no} +TESTS=${TESTS:-no} +VAPI=${VAPI:-no} + +if [ "$INTROSPECTION" = "yes" ]; then + INTROSPECTIONP="enabled" +else + INTROSPECTIONP="disabled" +fi + +if [ "$GTKDOC" = "yes" ]; then + GTKDOCP="true" +else + GTKDOCP="false" +fi + +if [ "$TESTS" = "yes" ]; then + TESTSP="true" +else + TESTSP="false" +fi + +if [ "$VAPI" = "yes" ]; then + VAPIP="true" +else + VAPIP="false" +fi if [ -z "$ARCH" ]; then case "$( uname -m )" in @@ -100,10 +124,10 @@ cd build --sysconfdir=/etc \ -Dstrip=true \ -Dgtk=true \ - -Dintrospection="$INTROSPECTION" \ - -Dvapi="$VAPI" \ - -Dtests="$TESTS" \ - -Dgtk_doc="$GTKDOC" + -Dintrospection="$INTROSPECTIONP" \ + -Dvapi="$VAPIP" \ + -Dtests="$TESTSP" \ + -Dgtk_doc="$GTKDOCP" "${NINJA:=ninja}" DESTDIR=$PKG $NINJA install cd .. -- cgit v1.2.3