diff options
author | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2016-01-24 08:44:20 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2016-01-25 07:25:11 +0700 |
commit | 40e66daa3defde198a72695427dc606772d82fcd (patch) | |
tree | ac61d7c47d67711e366f58be75911455d55df963 /system/diskscan/diskscan.SlackBuild | |
parent | 6f1dcf8b87f7660a68c8a6fbcb81cae192792b48 (diff) |
system/diskscan: Updated for version 0.19.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'system/diskscan/diskscan.SlackBuild')
-rw-r--r-- | system/diskscan/diskscan.SlackBuild | 31 |
1 files changed, 15 insertions, 16 deletions
diff --git a/system/diskscan/diskscan.SlackBuild b/system/diskscan/diskscan.SlackBuild index dbc761a226790..6f089fc7d8f0f 100644 --- a/system/diskscan/diskscan.SlackBuild +++ b/system/diskscan/diskscan.SlackBuild @@ -6,7 +6,7 @@ PRGNAM=diskscan -VERSION=${VERSION:-0.13} +VERSION=${VERSION:-0.19} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -45,23 +45,24 @@ cd $TMP rm -rf $PRGNAM-$VERSION tar xvf $CWD/$PRGNAM-$VERSION.tar.gz || tar xvf $CWD/$VERSION.tar.gz cd $PRGNAM-$VERSION - -# fix doc and man patch -sed -i "s!/share/man!/man!g" install.do -sed -i "s!/share/doc/diskscan!/doc/diskscan-$VERSION!g" install.do - 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" \ - -make -make install DESTDIR=$PKG + -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; + +sed -i "s|share/man/man1|man/man1|" CMakeLists.txt +mkdir -p build +cd build + cmake \ + -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \ + -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_BUILD_TYPE=Release .. + make + make install DESTDIR=$PKG +cd .. 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 @@ -71,9 +72,7 @@ for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; r mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a \ - COPYING README.md \ - $PKG/usr/doc/$PRGNAM-$VERSION +cp -a COPYING README.md $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir -p $PKG/install |