Package Details: kn 0.3.2-1

Git Clone URL: https://aur.archlinux.org/kn.git (read-only, click to copy)
Package Base: kn
Description: cd alternative. Navigate by typing abbreviation of paths.
Upstream URL: https://github.com/micouy/kn
Licenses: MIT
Submitter: sokoloowski
Maintainer: icewind
Last Packager: kleintux
Votes: 1
Popularity: 0.000032
First Submitted: 2021-06-01 11:03 (UTC)
Last Updated: 2022-12-15 17:16 (UTC)

Dependencies (2)

Required by (0)

Sources (2)

Latest Comments

icewind commented on 2021-12-24 16:18 (UTC)

Updated PKGBUILD that uses a proper source achieve instead of having cargo install pull things from git and moves the install notice to an install script instead of showing it at build time

PKGBULD

# Maintainer: micouy <m.powierza@tutanota.com>
pkgname=kn
pkgver=0.3.1
pkgrel=1
makedepends=('rust' 'cargo')
arch=('i686' 'x86_64' 'armv6h' 'armv7h')
pkgdesc="cd alternative. Navigate by typing abbreviation of paths."
license=('MIT')
url="https://github.com/micouy/kn"
_archive="$pkgname-$pkgver"
source=("$_archive.tar.gz::https://github.com/micouy/kn/archive/refs/tags/v${pkgver}.zip")
md5sums=('0f00cf160ec5730828b4c60641338f46')
install="kn.install"

build() {
    cd "$_archive"
    cargo build --frozen --release
}

package() {
    cd "$_archive"
    install -Dm0755 -t "$pkgdir/usr/bin/" "target/release/_kn"
}

kn.install

post_install() {
    echo -e "\033[0;41m\033[1;37mUpdate Your shell scripts before using this app!\033[0m"
    echo "Fish:"
    echo "  Append \"_kn init fish \| source\" in \"~/.config/fish/config.fish\""
    echo "Bash:"
    echo "  Append \"eval \"\$(_kn init bash)\"\" in \"~/.bashrc\""
    echo "Zsh:"
    echo "  Append \"eval \"\$(_kn init zsh)\"\" in \"~/.zshrc\""
    echo ""
}