void-packages/srcpkgs/helix/template

37 lines
981 B
Bash
Raw Normal View History

2022-03-31 04:11:14 +00:00
# Template file for 'helix'
pkgname=helix
version=22.03
revision=2
2022-03-31 04:11:14 +00:00
build_style=cargo
make_install_args="--path helix-term"
hostmakedepends="git"
short_desc="Post-modern modal text editor"
maintainer="Marcin Puc <tranzystorek.io@protonmail.com>"
license="MPL-2.0"
homepage="https://helix-editor.com/"
changelog="https://github.com/helix-editor/helix/blob/master/CHANGELOG.md"
distfiles="https://github.com/helix-editor/helix/archive/${version}.tar.gz"
checksum=a21f4d7b6390930a89b59567909ad7c613a1eeeafc813167ff7bc3be603997f4
# skip problematic doctests on i686
case "$XBPS_TARGET_MACHINE" in
i686*) make_check_args="-- --skip src/";;
*) ;;
esac
2022-04-01 01:14:51 +00:00
case "$XBPS_TARGET_MACHINE" in
ppc64*) ;;
ppc*) broken="no AtomicU64 in sync::atomic";;
esac
2022-03-31 04:11:14 +00:00
post_install() {
rm runtime/grammars/.gitkeep
rm runtime/themes/README.md
rm -rf runtime/grammars/sources
vmkdir usr/lib/helix
mv ${DESTDIR}/usr/bin/hx ${DESTDIR}/usr/lib/helix/
vcopy runtime usr/lib/helix
vbin ${FILESDIR}/hx
}