diff options
Diffstat (limited to 'office/evolution-ews/evolution-ews.SlackBuild')
-rw-r--r-- | office/evolution-ews/evolution-ews.SlackBuild | 34 |
1 files changed, 23 insertions, 11 deletions
diff --git a/office/evolution-ews/evolution-ews.SlackBuild b/office/evolution-ews/evolution-ews.SlackBuild index edeae3310b165..6ad5f9bc57339 100644 --- a/office/evolution-ews/evolution-ews.SlackBuild +++ b/office/evolution-ews/evolution-ews.SlackBuild @@ -25,13 +25,13 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=evolution-ews -VERSION=${VERSION:-3.44.0} +VERSION=${VERSION:-3.44.1} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} -GCOV=${GCOV:-OFF} -TESTING:${TESTING:-OFF} +GCOV=${GCOV:-no} +TESTING:${TESTING:-no} if [ -z "$ARCH" ]; then case "$( uname -m )" in @@ -46,6 +46,18 @@ if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then exit 0 fi +if [ "$GCOV" = "yes" ]; then + GCOVP="ON" +else + GCOVP="OFF" +fi + +if [ "$TESTING" = "yes" ]; then + TESTINGP="ON" +else + TESTINGP="OFF" +fi + TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} @@ -87,12 +99,15 @@ cd build -DCMAKE_INSTALL_PREFIX=/usr \ -DLIB_SUFFIX=${LIBDIRSUFFIX} \ -DMAN_INSTALL_DIR=/usr/man \ - -DENABLE_CODE_COVERAGE="$GCOV" \ - -DBUILD_TESTING="$TESTING" \ + -DENABLE_CODE_COVERAGE="$GCOVP" \ + -DBUILD_TESTING="$TESTINGP" \ -DSYSCONF_INSTALL_DIR=/etc \ - -DCMAKE_BUILD_TYPE=Release .. - make - make install/strip DESTDIR=$PKG + -DCMAKE_BUILD_TYPE=Release .. \ + -G Ninja + + "${NINJA:=ninja}" + DESTDIR=$PKG $NINJA install + cd .. rm -f $PKG/{,usr/}lib${LIBDIRSUFFIX}/*.la @@ -100,9 +115,6 @@ rm -f $PKG/{,usr/}lib${LIBDIRSUFFIX}/*.la find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true -#find $PKG/usr/man -type f -exec gzip -9 {} \; -#for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done - mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -a \ COPYING NEWS README \ |