libraries/gnome-autoar: Use yes/no for build options

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
Ozan Türkyılmaz 2022-05-12 14:04:32 +03:00 committed by Willy Sudiarto Raharjo
parent 6cf5504f67
commit a69f948e66
No known key found for this signature in database
GPG key ID: 3F617144D7238786
2 changed files with 37 additions and 13 deletions

View file

@ -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

View file

@ -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 ..