blob: 10615f5cf5cb1e89b3e4a35096c80fcb805a9dc7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
# Maintainer: Taiki Sugawara <buzz.taiki@gmail.com>
pkgname=fzf-tab-completion-git
_pkgname=${pkgname%-git}
pkgver=r343.0874776
pkgrel=1
pkgdesc="Tab completion using fzf in zsh, bash, GNU readline apps (e.g. python, php -a etc.)"
arch=('i686' 'x86_64')
url="https://github.com/lincheney/fzf-tab-completion"
license=('GPL3')
depends=('fzf')
optdepends=('rl_custom_function: readline support')
makedepends=('cargo')
provides=("$_pkgname")
install=$pkgname.install
source=("$_pkgname::git+https://github.com/lincheney/$_pkgname.git")
sha256sums=('SKIP')
pkgver() {
cd "$srcdir/$_pkgname"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
cd "$srcdir/$_pkgname"
export RUSTUP_TOOLCHAIN=stable
export CARGO_TARGET_DIR=target
(cd readline && cargo build --release --locked)
}
check() {
cd "$srcdir/$_pkgname"
export RUSTUP_TOOLCHAIN=stable
(cd readline && cargo test --frozen)
}
package() {
cd "$srcdir/$_pkgname"
install -D -m755 readline/bin/rl_custom_complete $pkgdir/usr/bin/rl_custom_complete
install -D -m755 readline/target/release/librl_custom_complete.so $pkgdir/usr/lib/librl_custom_complete.so
install -D -m755 bash/fzf-bash-completion.sh $pkgdir/usr/share/$_pkgname/bash/fzf-bash-completion.sh
install -D -m755 zsh/fzf-zsh-completion.sh $pkgdir/usr/share/$_pkgname/zsh/fzf-zsh-completion.sh
install -D -m755 node/fzf-node-completion.js $pkgdir/usr/share/$_pkgname/node/fzf-node-completion.js
install -D -m644 README.md $pkgdir/usr/share/doc/$_pkgname/README.md
}
|