diff options
author | Ozan Türkyılmaz <ozan.turkyilmaz@gmail.com> | 2022-05-12 14:04:32 +0300 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2022-05-14 19:27:52 +0700 |
commit | a69f948e6660a831b81017477cb17603f0d0b71c (patch) | |
tree | a0edb484196a9da5ab531939d1c86b9fe5c5556f | |
parent | 6cf5504f67bcaea9423d226d97fc905800356e34 (diff) | |
download | slackbuilds-a69f948e6660a831b81017477cb17603f0d0b71c.tar.gz |
libraries/gnome-autoar: Use yes/no for build options
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
-rw-r--r-- | libraries/gnome-autoar/README | 8 | ||||
-rw-r--r-- | 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 .. |