summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 7278f326bf3cf119431e598311140df3e3e6ac94 (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
# Maintainer: MithicSpirit <rpc01234 at gmail dot com>

pkgname=helixbinhx
pkgver=2
pkgrel=2
pkgdesc='Link /usr/bin/hx to helix'
arch=(any)
license=('MPL2')
depends=()
depends=(helix)
conflicts=(hex)
source=()
sha256sums=()

package() {
	install -dm755 "$pkgdir/usr/bin"
	ln -s helix "$pkgdir/usr/bin/hx"

	install -Dm644 "/usr/share/bash-completion/completions/helix" \
		"$pkgdir/usr/share/bash-completion/completions/hx"
	sed -i 's/helix/hx/g' "$pkgdir/usr/share/bash-completion/completions/hx"

	install -Dm644 "/usr/share/fish/vendor_completions.d/helix.fish" \
		"$pkgdir/usr/share/fish/vendor_completions.d/hx.fish"
	sed -i 's/helix/hx/g' \
		"$pkgdir/usr/share/fish/vendor_completions.d/hx.fish"

	install -Dm644 "/usr/share/zsh/site-functions/_helix" \
		"$pkgdir/usr/share/zsh/site-functions/_hx"
	sed -i 's/helix/hx/g' "$pkgdir/usr/share/zsh/site-functions/_hx"
}