44 lines
1.2 KiB
Bash
44 lines
1.2 KiB
Bash
# Template file for 'helix'
|
|
pkgname=helix
|
|
version=22.08.1
|
|
revision=1
|
|
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://raw.githubusercontent.com/helix-editor/helix/master/CHANGELOG.md"
|
|
distfiles="https://github.com/helix-editor/helix/archive/refs/tags/${version}.tar.gz"
|
|
checksum=c9b184d53bab51e7a9fe81dc8c191a853177abba67ea408e968937f31b50b45a
|
|
|
|
# skip problematic doctests on i686
|
|
case "$XBPS_TARGET_MACHINE" in
|
|
i686*) make_check_args="-- --skip src/";;
|
|
*) ;;
|
|
esac
|
|
|
|
case "$XBPS_TARGET_MACHINE" in
|
|
ppc64*) ;;
|
|
ppc*) broken="no AtomicU64 in sync::atomic";;
|
|
esac
|
|
|
|
post_install() {
|
|
rm runtime/grammars/.gitkeep
|
|
rm runtime/themes/README.md
|
|
rm -rf runtime/grammars/sources
|
|
|
|
for shell in bash zsh fish; do
|
|
vcompletion contrib/completion/hx.${shell} ${shell} hx
|
|
done
|
|
|
|
vinstall contrib/Helix.desktop 644 usr/share/applications
|
|
vinstall contrib/helix.png 644 usr/share/icons/hicolor/128x128/apps
|
|
|
|
vmkdir usr/lib/helix
|
|
mv ${DESTDIR}/usr/bin/hx ${DESTDIR}/usr/lib/helix/
|
|
vcopy runtime usr/lib/helix
|
|
vbin ${FILESDIR}/hx
|
|
}
|