backports/nb: new aport
This commit is contained in:
parent
5b65ef5b0d
commit
a23b312f46
1 changed files with 45 additions and 0 deletions
45
backports/nb/APKBUILD
Normal file
45
backports/nb/APKBUILD
Normal file
|
@ -0,0 +1,45 @@
|
||||||
|
# Contributor: Quillith <tag.quill@protonmail.com>
|
||||||
|
# Maintainer: Quillith <tag.quill@protonmail.com>
|
||||||
|
pkgname=nb
|
||||||
|
pkgver=7.9.1
|
||||||
|
pkgrel=0
|
||||||
|
pkgdesc="Command line note-taking, bookmarking, archiving, and knowledge base application"
|
||||||
|
url="https://github.com/xwmx/nb"
|
||||||
|
arch="noarch"
|
||||||
|
license="AGPL-3.0-or-later"
|
||||||
|
depends="bash git"
|
||||||
|
subpackages="
|
||||||
|
$pkgname-doc
|
||||||
|
$pkgname-full
|
||||||
|
$pkgname-bash-completion
|
||||||
|
$pkgname-fish-completion
|
||||||
|
$pkgname-zsh-completion
|
||||||
|
"
|
||||||
|
source="$pkgname-$pkgver.tar.gz::https://github.com/xwmx/nb/archive/$pkgver.tar.gz"
|
||||||
|
options="!check" # no tests
|
||||||
|
|
||||||
|
package() {
|
||||||
|
install -Dm755 nb "$pkgdir/usr/bin/nb"
|
||||||
|
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/nb/LICENSE"
|
||||||
|
install -Dm644 README.md "$pkgdir/usr/share/doc/nb/README.md"
|
||||||
|
# Completions
|
||||||
|
install -Dm644 etc/nb-completion.bash "$pkgdir/usr/share/bash-completion/completions/nb"
|
||||||
|
install -Dm644 etc/nb-completion.fish "$pkgdir/usr/share/fish/vendor_completions.d/nb.fish"
|
||||||
|
install -Dm644 etc/nb-completion.zsh "$pkgdir/usr/share/zsh/site-functions/_nb"
|
||||||
|
# Plugins
|
||||||
|
install -Dm644 -t "$pkgdir/usr/share/nb/plugins/" plugins/*
|
||||||
|
# Extras (prefixed with "nb-")
|
||||||
|
for extra in bookmark notes; do
|
||||||
|
install -Dm0755 "bin/$extra" "$pkgdir/usr/bin/nb-$extra"
|
||||||
|
done
|
||||||
|
}
|
||||||
|
|
||||||
|
full() {
|
||||||
|
pkgdesc="More utilities that integrate with nb"
|
||||||
|
depends="$pkgname=$pkgver-r$pkgrel bat nmap-ncat pandoc ripgrep tig w3m"
|
||||||
|
mkdir -p "$subpkgdir"
|
||||||
|
}
|
||||||
|
|
||||||
|
sha512sums="
|
||||||
|
cb7aee4f7fb6fa3a0e5e47fdbc87911375a431e5ad821e748d84769cb3384bc7098368b0611c70d4548a12d884cb161ac5286fc28da6a40514736cc3668fc751 nb-7.9.1.tar.gz
|
||||||
|
"
|
Loading…
Reference in a new issue