summaryrefslogtreecommitdiff
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.SlackBuild10
1 files changed, 8 insertions, 2 deletions
diff --git a/system/nvme-cli/nvme-cli.SlackBuild b/system/nvme-cli/nvme-cli.SlackBuild
index 515b3665ab..1b7de2c2c6 100644
--- a/system/nvme-cli/nvme-cli.SlackBuild
+++ b/system/nvme-cli/nvme-cli.SlackBuild
@@ -71,18 +71,24 @@ make install DESTDIR=$PKG PREFIX=/usr SBINDIR=/usr/sbin
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
+mkdir -p $PKG/etc/bash_completion.d
+mv $PKG/usr/share/bash_completion.d/nvme $PKG/etc/bash_completion.d/nvme.new
+rmdir $PKG/usr/share/bash_completion.d/
+
mv $PKG/usr/share/man $PKG/usr/
rmdir --ignore-fail-on-non-empty $PKG/usr/share/
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
-cp -a CONTRIBUTING.md README.md LICENSE $PKG/usr/doc/$PRGNAM-$VERSION
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION/completions
+cp -a CONTRIBUTING.md README.md 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
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
+cat $CWD/doinst.sh > $PKG/install/doinst.sh
cd $PKG
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}