From aaefd0433a57591a8883d5d7eea418b0b5174b8a Mon Sep 17 00:00:00 2001 From: littleblack111 Date: Thu, 11 Sep 2025 19:33:20 +0800 Subject: new: helix pkgbuild --- pkgbuilds/helix-git/.SRCINFO | 16 ++++++++++ pkgbuilds/helix-git/PKGBUILD | 75 ++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 91 insertions(+) create mode 100644 pkgbuilds/helix-git/.SRCINFO create mode 100644 pkgbuilds/helix-git/PKGBUILD (limited to 'pkgbuilds') diff --git a/pkgbuilds/helix-git/.SRCINFO b/pkgbuilds/helix-git/.SRCINFO new file mode 100644 index 00000000..9bd127f3 --- /dev/null +++ b/pkgbuilds/helix-git/.SRCINFO @@ -0,0 +1,16 @@ +pkgbase = helix-git + pkgdesc = A text editor written in rust + pkgver = 25.01.1.r391.g17fb12bcf + pkgrel = 1 + url = https://helix-editor.com + arch = x86_64 + license = MPL-2.0 + makedepends = git + makedepends = cargo + provides = hx + conflicts = helix + options = !lto + source = helix::git+https://github.com/helix-editor/helix.git + sha256sums = SKIP + +pkgname = helix-git diff --git a/pkgbuilds/helix-git/PKGBUILD b/pkgbuilds/helix-git/PKGBUILD new file mode 100644 index 00000000..ece76e9d --- /dev/null +++ b/pkgbuilds/helix-git/PKGBUILD @@ -0,0 +1,75 @@ +# Maintainer: Robin Jadoul (aur@ur4ndom.dev) +# Contributor: Wojciech Kępka (wojciech@wkepka.dev) +pkgname=helix-git +_pkgname=helix +pkgver=22.12.r3032.g7ba54f11 +pkgrel=1 +pkgdesc="A text editor written in rust" +url="https://helix-editor.com" +license=("MPL-2.0") +_git="https://github.com/littleblack111/${_pkgname}.git" +arch=(x86_64) +makedepends=('git' 'cargo') +depends=() +provides=('hx') +conflicts=('helix') +options=(!lto) +source=("${_pkgname}::git+${_git}") +sha256sums=('SKIP') + +_bin="hx" +_lib_path="/usr/lib/${_pkgname}" +_rt_path="${_lib_path}/runtime" + +pkgver() { + cd "${_pkgname}" + git remote add upstream https://github.com/helix-editor/helix + git checkout upstream/master + git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g' +} + +prepare() { + cat >"$_bin" <