Date: Sunday, December 1, 2019 @ 20:17:08 Author: maximbaz Revision: 534650
nnn: add optdepends, quote all vars Modified: nnn/trunk/PKGBUILD ----------+ PKGBUILD | 34 +++++++++++++++++++++++----------- 1 file changed, 23 insertions(+), 11 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2019-12-01 19:59:08 UTC (rev 534649) +++ PKGBUILD 2019-12-01 20:17:08 UTC (rev 534650) @@ -1,34 +1,46 @@ # Maintainer: Felix Yan <[email protected] +# Maintainer: Maxim Baz <$pkgname at maximbaz dot com> # Contributor: Pablo Arias <[email protected]> # Contributor: John Jenkins <[email protected]> pkgname=nnn pkgver=2.7 -pkgrel=1 +pkgrel=2 pkgdesc="The fastest terminal file manager ever written." arch=('x86_64') depends=('bash') -url="https://github.com/jarun/nnn" +optdepends=( + 'atool: for more archive formats' + 'libarchive: for more archive formats' + 'zip: for zip archive format' + 'unzip: for zip archive format' + 'trash-cli: to trash files' + 'sshfs: mount remotes' + 'rclone: mount remotes' + 'fuse2: unmount remotes' + 'xdg-utils: desktop opener' +) +url="https://github.com/jarun/${pkgname}" license=('BSD') -source=("$pkgname-$pkgver.tar.gz::https://github.com/jarun/nnn/archive/v${pkgver//_/-}.tar.gz") +source=("${pkgname}-${pkgver}.tar.gz::https://github.com/jarun/nnn/archive/v${pkgver}.tar.gz") sha256sums=('0592c7cbcf2cf66cacac49e9204636480820b1bc74e4187dd7ee06945a6d07c5') prepare() { - sed -i 's/install: all/install:/' $pkgname-$pkgver/Makefile + sed -i 's/install: all/install:/' "${pkgname}-${pkgver}/Makefile" } build() { - cd $pkgname-$pkgver + cd "${pkgname}-${pkgver}" make } package() { - cd $pkgname-$pkgver - make DESTDIR="$pkgdir" PREFIX=/usr install + cd "${pkgname}-${pkgver}" + make DESTDIR="${pkgdir}" PREFIX=/usr install - install -Dm644 misc/auto-completion/fish/nnn.fish "$pkgdir"/usr/share/fish/vendor_completions.d/nnn.fish - install -Dm644 misc/auto-completion/bash/nnn-completion.bash "$pkgdir"/usr/share/bash-completion/completions/nnn - install -Dm644 misc/auto-completion/zsh/_nnn "$pkgdir"/usr/share/zsh/site-functions/_nnn + install -Dm644 misc/auto-completion/fish/nnn.fish "${pkgdir}/usr/share/fish/vendor_completions.d/nnn.fish" + install -Dm644 misc/auto-completion/bash/nnn-completion.bash "${pkgdir}/usr/share/bash-completion/completions/nnn" + install -Dm644 misc/auto-completion/zsh/_nnn "${pkgdir}/usr/share/zsh/site-functions/_nnn" - install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE + install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" }
