mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-16 19:50:19 +01:00
libraries/gnome-autoar: Use yes/no for build options
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
parent
6cf5504f67
commit
a69f948e66
2 changed files with 37 additions and 13 deletions
|
@ -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
|
||||
|
|
|
@ -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 ..
|
||||
|
|
Loading…
Reference in a new issue