[arch-commits] Commit in (5 files)

Orhun Parmaksiz orhun at gemini.archlinux.org
Thu Jul 29 18:42:46 UTC 2021


    Date: Thursday, July 29, 2021 @ 18:42:46
  Author: orhun
Revision: 990533

addpkg: helix 0.3.0-2

Added:
  helix/
  helix/repos/
  helix/trunk/
  helix/trunk/PKGBUILD
  helix/trunk/helix.sh

----------+
 PKGBUILD |   44 ++++++++++++++++++++++++++++++++++++++++++++
 helix.sh |    3 +++
 2 files changed, 47 insertions(+)

Added: helix/trunk/PKGBUILD
===================================================================
--- helix/trunk/PKGBUILD	                        (rev 0)
+++ helix/trunk/PKGBUILD	2021-07-29 18:42:46 UTC (rev 990533)
@@ -0,0 +1,44 @@
+# Maintainer: Orhun Parmaksız <orhun at archlinux.org>
+# Contributor: Wojciech Kępka (wojciech at wkepka.dev)
+
+pkgname=helix
+pkgver=0.3.0
+pkgrel=2
+pkgdesc="A post-modern modal text editor"
+arch=('x86_64')
+url="https://helix-editor.com"
+license=('MPL2')
+depends=('bash')
+makedepends=('rust' 'git')
+conflicts=("hex")
+source=("git+https://github.com/helix-editor/helix.git#tag=v$pkgver"
+        "$pkgname.sh")
+sha256sums=('SKIP'
+            'f782c93bc0f2c7b27ec62fb2ba36e11b3354c3953405f8d2017b039c9eac500a')
+
+prepare() {
+  cd "$pkgname"
+  git submodule init
+  git submodule update --recursive
+}
+
+build() {
+  cd "$pkgname"
+  cargo build --release --locked
+}
+
+check() {
+  cd "$pkgname"
+  cargo test --release --locked --all-features
+}
+
+package() {
+  cd "$pkgname"
+  install -Dm 755 "../$pkgname.sh" "$pkgdir/usr/bin/hx"
+  install -Dm 755 "target/release/hx" "$pkgdir/usr/lib/$pkgname/hx"
+  mkdir -p "$pkgdir/usr/lib/helix/"
+  cp -r "runtime" "$pkgdir/usr/lib/helix/"
+  install -Dm 644 README.md -t "$pkgdir/usr/share/doc/$pkgname"
+}
+
+# vim: ts=2 sw=2 et:

Added: helix/trunk/helix.sh
===================================================================
--- helix/trunk/helix.sh	                        (rev 0)
+++ helix/trunk/helix.sh	2021-07-29 18:42:46 UTC (rev 990533)
@@ -0,0 +1,3 @@
+#!/usr/bin/env sh
+
+HELIX_RUNTIME=/usr/lib/helix/runtime exec /usr/lib/helix/hx "$@"



More information about the arch-commits mailing list