# Maintainer: Klaus Alexander Seistrup # Contributor: Sebastian Wiesner # Contributor: Vlad Petrov pkgname=nb pkgver=7.5.3 pkgrel=1 pkgdesc="A command line note-taking, bookmarking, archiving, and knowledge base application" arch=('any') url="https://github.com/xwmx/${pkgname}" source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/${pkgver}.tar.gz") license=('AGPL3') depends=('bash' 'git') optdepends=( # Recommended 'bat: recommended' 'nmap: for ncat, recommended' # For ncat 'pandoc: recommended' 'ripgrep: recommended' 'tig: recommended' 'w3m: recommended' # Additional 'ack' 'the_silver_searcher' 'catimg' 'exa' 'ffmpeg' # For ffplay 'imagemagick' 'gnupg' 'highlight' 'links' 'lynx' 'mc' 'mpg123' 'mplayer' 'poppler' # For pdftotext 'python-pygments' 'ranger' 'readability-cli' 'ripgrep-all' 'termpdf.py-git' 'vifm' ) package() { cd "${pkgname}-${pkgver}" install -Dm755 "${pkgname}" "${pkgdir}/usr/bin/${pkgname}" install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" install -Dm644 README.md "$pkgdir/usr/share/doc/${pkgname}/README.md" # Completions install -Dm644 etc/nb-completion.bash "${pkgdir}/usr/share/bash-completion/completions/${pkgname}" install -Dm644 etc/nb-completion.fish "${pkgdir}/usr/share/fish/vendor_completions.d/${pkgname}.fish" install -Dm644 etc/nb-completion.zsh "${pkgdir}/usr/share/zsh/site-functions/_${pkgname}" # 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/${pkgname}-${extra}" done } sha256sums=( '062a50d8e8c77e8fdd52fb16a3744f556a56136e9939b43a6adc8b8fa8e1121b' ) sha512sums=( 'b410d62a26cb9bc35feca49368bc19cdcc82174ed88ed9c4f4e41042f328532c0f7a0d1e780fb346d4b74ca2bf329214a17eab0e5671fd535385e8453b99c3d2' ) # eof