diff options
Diffstat (limited to 'development/check')
-rw-r--r-- | development/check/check.SlackBuild | 43 | ||||
-rw-r--r-- | development/check/check.info | 8 |
2 files changed, 21 insertions, 30 deletions
diff --git a/development/check/check.SlackBuild b/development/check/check.SlackBuild index d611ead361..c6d5035d96 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 diff --git a/development/check/check.info b/development/check/check.info index f5dd93ed8e..4049f39342 100644 --- a/development/check/check.info +++ b/development/check/check.info @@ -1,8 +1,8 @@ PRGNAM="check" -VERSION="0.9.8" -HOMEPAGE="http://check.sourceforge.net/" -DOWNLOAD="http://downloads.sourceforge.net/check/check-0.9.8.tar.gz" -MD5SUM="5d75e9a6027cde79d2c339ef261e7470" +VERSION="0.9.10" +HOMEPAGE="http://libcheck.github.io/check/" +DOWNLOAD="https://github.com/libcheck/check/archive/0.10.0.tar.gz" +MD5SUM="b2737c6725a22510780a5af79080a896" DOWNLOAD_x86_64="" MD5SUM_x86_64="" REQUIRES="" |