diff options
author | Gene Carlson <kvngncrlsn@gmail.com> | 2023-03-14 15:00:46 +0900 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2023-03-18 09:50:13 +0700 |
commit | 4bd4cc9eeaa4de5cb41fa11b62ab2f4ef8fecd91 (patch) | |
tree | c2842c7a101e5384926a664e04b4c021cac6ff80 /audio/ncspot | |
parent | dd3c19ef9701692e87d8c3cad54c788c2eb2e5b8 (diff) |
audio/ncspot: Add pre-generated man page and shell completions.
Signed-off-by: Andrew Clemons <andrew.clemons@gmail.com>
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'audio/ncspot')
-rw-r--r-- | audio/ncspot/ncspot-misc.tar | bin | 0 -> 20480 bytes | |||
-rw-r--r-- | audio/ncspot/ncspot.SlackBuild | 25 |
2 files changed, 23 insertions, 2 deletions
diff --git a/audio/ncspot/ncspot-misc.tar b/audio/ncspot/ncspot-misc.tar Binary files differnew file mode 100644 index 0000000000000..4d3372195f256 --- /dev/null +++ b/audio/ncspot/ncspot-misc.tar diff --git a/audio/ncspot/ncspot.SlackBuild b/audio/ncspot/ncspot.SlackBuild index 40d6dfb47ecfd..db8873b1b017d 100644 --- a/audio/ncspot/ncspot.SlackBuild +++ b/audio/ncspot/ncspot.SlackBuild @@ -26,7 +26,7 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=ncspot VERSION=${VERSION:-0.13.0} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -87,7 +87,9 @@ mkdir -p $TMP $PKG $OUTPUT cd $TMP rm -rf $PRGNAM-$VERSION tar xvf $CWD/$PRGNAM-$VERSION.tar.gz -cd $PRGNAM-$VERSION +cd $PRGNAM-$VERSION/misc +tar xvf $CWD/ncspot-misc.tar +cd .. # build offline # configuration tells cargo to use the configured directory @@ -168,6 +170,10 @@ install -m 644 misc/$PRGNAM.desktop $PKG/usr/share/applications/ mkdir -p $PKG/usr/share/icons/hicolor/scalable/apps install -m 644 images/logo.svg $PKG/usr/share/icons/hicolor/scalable/apps/$PRGNAM.svg +mkdir -p $PKG/usr/man/man1 +install -m 644 misc/ncspot.1 $PKG/usr/man/man1/ +gzip -9 $PKG/usr/man/man1/* + 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 @@ -175,6 +181,21 @@ mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -a LICENSE README.md $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild +# Completions +mkdir -p $PKG/usr/share/bash-completion/completions +install -m 644 misc/$PRGNAM.bash $PKG/usr/share/bash-completion/completions +mkdir -p $PKG/usr/share/zsh/site-functions +install -m 644 misc/_$PRGNAM $PKG/usr/share/zsh/site-functions +# Only install the fish completions if fish is installed. +if [ -x /usr/bin/fish ]; then + mkdir -p $PKG/usr/share/fish/vendor_completions.d + install -m 644 misc/$PRGNAM.fish $PKG/usr/share/fish/vendor_completions.d +fi +# Keep files for fish, PowerShell and Elvish completions in the doc directory. +install -m 644 misc/$PRGNAM.fish $PKG/usr/doc/$PRGNAM-$VERSION +install -m 644 misc/_$PRGNAM.ps1 $PKG/usr/doc/$PRGNAM-$VERSION +install -m 644 misc/$PRGNAM.elv $PKG/usr/doc/$PRGNAM-$VERSION + mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc cat $CWD/doinst.sh > $PKG/install/doinst.sh |