diff options
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -2,7 +2,7 @@ # https://github.com/orhun/pkgbuilds pkgname=atuin-git -pkgver=0.7.2.r6.gb549095d +pkgver=0.8.0.r3.g7fa3e1c0 pkgrel=1 pkgdesc="Magical shell history (git)" arch=('x86_64') @@ -14,6 +14,7 @@ conflicts=("${pkgname%-git}") provides=("${pkgname%-git}") source=("git+${url}") sha256sums=('SKIP') +options=('!lto') pkgver() { cd "${pkgname%-git}" @@ -23,11 +24,15 @@ pkgver() { prepare() { cd "${pkgname%-git}" cargo fetch --locked + mkdir completions/ } build() { cd "${pkgname%-git}" cargo build --release --frozen + for sh in 'bash' 'fish' 'zsh'; do + "target/release/${pkgname%-git}" gen-completions -s "$sh" -o completions/ + done } check() { @@ -40,4 +45,7 @@ package() { install -Dm 755 "target/release/${pkgname%-git}" -t "${pkgdir}/usr/bin" install -Dm 644 README.md -t "$pkgdir/usr/share/doc/$pkgname" install -Dm 644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname" + install -Dm 644 "completions/${pkgname%-git}.bash" "${pkgdir}/usr/share/bash-completion/completions/${pkgname%-git}" + install -Dm 644 "completions/${pkgname%-git}.fish" -t "${pkgdir}/usr/share/fish/vendor_completions.d" + install -Dm 644 "completions/_${pkgname%-git}" -t "${pkgdir}/usr/share/zsh/site-functions" } |