aboutsummaryrefslogtreecommitdiff
path: root/system/nvme-cli/nvme-cli.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'system/nvme-cli/nvme-cli.SlackBuild')
-rw-r--r--system/nvme-cli/nvme-cli.SlackBuild17
1 files changed, 11 insertions, 6 deletions
diff --git a/system/nvme-cli/nvme-cli.SlackBuild b/system/nvme-cli/nvme-cli.SlackBuild
index f07d92dbeb6ee..747d75d449b0d 100644
--- a/system/nvme-cli/nvme-cli.SlackBuild
+++ b/system/nvme-cli/nvme-cli.SlackBuild
@@ -23,7 +23,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=nvme-cli
-VERSION=${VERSION:-1.11}
+VERSION=${VERSION:-1.11.1}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -65,8 +65,14 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
-make CFLAGS="$SLKCFLAGS" CXXFLAGS="$SLKCFLAGS" PREFIX=/usr
-make install DESTDIR=$PKG PREFIX=/usr SBINDIR=/usr/sbin
+make CFLAGS="$SLKCFLAGS" CXXFLAGS="$SLKCFLAGS" PREFIX=/usr SBINDIR=/usr/sbin
+make install CFLAGS="$SLKCFLAGS" CXXFLAGS="$SLKCFLAGS" \
+ PREFIX=/usr SBINDIR=/usr/sbin DESTDIR=$PKG
+
+rm -f $PKG/etc/nvme/*
+rm -r $PKG/etc/udev
+rm -r $PKG/usr/lib/{dracut,systemd}
+rmdir --ignore-fail-on-non-empty $PKG/usr/lib
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
@@ -76,14 +82,13 @@ mv $PKG/usr/share/bash-completion/completions/nvme $PKG/etc/bash_completion.d/nv
rmdir $PKG/usr/share/bash-completion/completions/
rmdir $PKG/usr/share/bash-completion/
-mv $PKG/usr/share/man $PKG/usr/
-rmdir --ignore-fail-on-non-empty $PKG/usr/share/
+mv $PKG/usr/share/man $PKG/usr/man
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/completions
-cp -a CONTRIBUTING.md README.md LICENSE scripts $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a CONTRIBUTING* README* LICENSE* scripts $PKG/usr/doc/$PRGNAM-$VERSION
cp -a completions/{README,_nvme} $PKG/usr/doc/$PRGNAM-$VERSION/completions
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild