aboutsummaryrefslogtreecommitdiff
path: root/system/diskscan/diskscan.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'system/diskscan/diskscan.SlackBuild')
-rw-r--r--system/diskscan/diskscan.SlackBuild31
1 files changed, 15 insertions, 16 deletions
diff --git a/system/diskscan/diskscan.SlackBuild b/system/diskscan/diskscan.SlackBuild
index dbc761a22679..6f089fc7d8f0 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