blob: 546249783d59accb4a6dc2697f8767acc2723ef6 (
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
|
# Maintainer: Sandroid <sandroid at posteo dot net>
# Maintainer: Wenxuan Zhang <wenxuangm at gmail dot com>
# Contributor: Luis Martinez <luis dot martinez at disroot dot org>
pkgname=forgit-git
_pkgname=${pkgname%-git}
pkgver=24.02.0.r6.g00ed721
pkgrel=1
pkgdesc="Utility tool powered by fzf for using git interactively"
arch=('any')
url="https://github.com/wfxr/forgit"
license=('MIT')
groups=('fish-plugins' 'zsh-plugins')
depends=('bash' 'fzf' 'git')
optdepends=(
'zsh: supported shell'
'fish: supported shell'
'git-delta: human readable diffs'
'diff-so-fancy: human readable diffs'
'bat: syntax highlighting for .gitignore'
'emoji-cli: emoji support for git log')
makedepends=('git')
provides=("$_pkgname")
conflicts=("$_pkgname" "forgit")
install="$pkgname.install"
source=("$_pkgname::git+$url")
md5sums=('SKIP')
pkgver() {
git -C "$_pkgname" describe --long --tags | sed 's/-/.r/;s/-/./'
}
package() {
cd "$_pkgname"
# wrapper script
install -Dv bin/git-forgit -t "$pkgdir/usr/bin/"
# bash completions
install -Dvm644 completions/git-forgit.bash -t ~/.local/share/bash-completion/completions/
# zsh install
install -Dvm644 forgit.plugin.zsh -t "$pkgdir/usr/share/zsh/plugins/$pkgname/"
install -dv "$pkgdir/usr/share/zsh/plugins/$pkgname/bin/"
ln -sv /usr/bin/git-forgit "$pkgdir/usr/share/zsh/plugins/$pkgname/bin/"
# zsh completions
install -Dvm644 completions/_git-forgit -t "$pkgdir/usr/share/zsh/site-functions/"
# fish install
install -Dvm644 conf.d/forgit.plugin.fish -t "$pkgdir/usr/share/fish/vendor_conf.d/"
install -dv "$pkgdir/usr/share/fish/vendor_conf.d/bin/"
ln -sv /usr/bin/git-forgit "$pkgdir/usr/share/fish/vendor_conf.d/bin/"
# docs
install -Dvm644 README.md -t "$pkgdir/usr/share/doc/$pkgname/"
# license
install -Dvm644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname/"
}
|