aboutsummaryrefslogtreecommitdiff
path: root/development/check/check.SlackBuild
diff options
context:
space:
mode:
authorWilly Sudiarto Raharjo <willysr@slackbuilds.org>2016-01-24 00:40:09 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2016-01-25 07:24:54 +0700
commite97342f83991e7a8a172cbdf284b464ae3004ea7 (patch)
treede4177cac6373d1bba3ae2df77af0411fdbdcf8a /development/check/check.SlackBuild
parent45382984e2e821016b76b002c18d13d68e46eb72 (diff)
development/check: Updated for version 0.10.0.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'development/check/check.SlackBuild')
-rw-r--r--development/check/check.SlackBuild43
1 files changed, 17 insertions, 26 deletions
diff --git a/development/check/check.SlackBuild b/development/check/check.SlackBuild
index d611ead361bd6..c6d5035d9619a 100644
--- a/development/check/check.SlackBuild
+++ b/development/check/check.SlackBuild
@@ -23,7 +23,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=check
-VERSION=0.9.8
+VERSION=${VERSION:-0.10.0}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -60,39 +60,30 @@ rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
-tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
+tar xvf $CWD/$PRGNAM-$VERSION.tar.gz || tar xvf $CWD/$VERSION.tar.gz
cd $PRGNAM-$VERSION
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
-o -perm 511 \) -exec chmod 755 {} \; -o \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
- -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
-
-CFLAGS="$SLKCFLAGS" \
-CXXFLAGS="$SLKCFLAGS" \
-./configure \
- --prefix=/usr \
- --libdir=/usr/lib${LIBDIRSUFFIX} \
- --sysconfdir=/etc \
- --localstatedir=/var \
- --mandir=/usr/man \
- --infodir=/usr/info \
- --docdir=/usr/doc/$PRGNAM-$VERSION \
- --build=$ARCH-slackware-linux
-
-make docdir=/usr/doc/$PRGNAM-$VERSION
-make install docdir=/usr/doc/$PRGNAM-$VERSION DESTDIR=$PKG
-
-find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
+ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+
+sed -i "s|DESTINATION lib|DESTINATION lib${LIBDIRSUFFIX}|" lib/CMakeLists.txt
+sed -i "s|DESTINATION lib|DESTINATION lib${LIBDIRSUFFIX}|" src/CMakeLists.txt
+mkdir -p build
+ cmake \
+ -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_BUILD_TYPE=Release .
+ make
+ make install DESTDIR=$PKG
+
+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
-# No man page is provided
-
-rm -f $PKG/usr/info/dir
-gzip -9 $PKG/usr/info/*
-
-cp -a AUTHORS INSTALL THANKS TODO $PKG/usr/doc/$PRGNAM-$VERSION
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a AUTHORS THANKS TODO $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install