summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorwojciechkepka2021-06-01 21:07:49 +0200
committerwojciechkepka2021-06-01 21:07:49 +0200
commit32ed0d5c51f66bf54aabc101e0b2950d6c3984f9 (patch)
treed2bf3eaedd723a5a549b75cb237248c975c24ee4
downloadaur-32ed0d5c51f66bf54aabc101e0b2950d6c3984f9.tar.gz
Initial upload
-rw-r--r--.SRCINFO14
-rw-r--r--PKGBUILD42
2 files changed, 56 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..2e9fe7bcee2
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,14 @@
+pkgbase = helix-git
+ pkgdesc = A text editor written in rust
+ pkgver = 0
+ pkgrel = 1
+ url = https://helix-editor.com
+ arch = x86_64
+ makedepends = cargo
+ makedepends = rust
+ makedepends = git
+ provides = hx
+ source = git+https://github.com/helix-editor/helix.git
+ sha256sums = SKIP
+
+pkgname = helix-git
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..7c2bdfd8bde
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,42 @@
+# Maintainer: Wojciech Kępka (wojciech@wkepka.dev)
+pkgname=helix-git
+pkgver=0
+pkgrel=1
+pkgdesc="A text editor written in rust"
+url="https://helix-editor.com"
+arch=(x86_64)
+makedepends=("cargo" "rust" "git")
+depends=()
+provides=("hx")
+source=("git+https://github.com/helix-editor/helix.git")
+sha256sums=('SKIP')
+
+prepare() {
+ cat > "hx" << EOF
+#!/usr/bin/env sh
+HELIX_RUNTIME=/usr/lib/helix/runtime exec /usr/lib/helix/hx "\$@"
+EOF
+ chmod +x "hx"
+
+ cd helix
+ git submodule update --recursive --recommend-shallow --init
+}
+
+build() {
+ cd helix
+ cargo build --release
+}
+
+check() {
+ cd helix
+ cargo test --all-features
+}
+
+package() {
+ cd helix
+ mkdir -p "$pkgdir/usr/lib/helix/"
+ cp -r "runtime" "$pkgdir/usr/lib/helix/"
+ install -Dm 0777 "target/release/hx" "$pkgdir/usr/lib/helix/hx"
+ install -Dm 0444 "LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+ install -Dm 0777 "$srcdir/hx" "$pkgdir/usr/bin/hx"
+}