Package Details: xi-core 0.3.0-3

Git Clone URL: https://aur.archlinux.org/xi-core.git (read-only, click to copy)
Package Base: xi-core
Description: A modern editor with a backend written in Rust
Upstream URL: https://github.com/xi-editor/xi-editor
Licenses: Apache
Submitter: flipflop97
Maintainer: alerque
Last Packager: alerque
Votes: 9
Popularity: 0.000304
First Submitted: 2020-01-03 13:14 (UTC)
Last Updated: 2024-03-27 08:38 (UTC)

Dependencies (2)

Sources (1)

Latest Comments

Rubo commented on 2022-04-15 10:51 (UTC)

@alerque right, sorry!

alerque commented on 2022-04-15 09:56 (UTC)

@Rubo Please don't flag this as out of date until there is a tagged release available upstream. It is interesting to see there is recent dev activity again upstream, but that is not a reason for this to be flagged. Use xi-core-git if you want the bleeding edge upstream build.

flipflop97 commented on 2021-08-10 15:38 (UTC)

@alerque

I don't really use this package anymore, so I don't actively maintain it. I think you'll do a much better job than me, feel free to take it over :)

alerque commented on 2021-08-06 11:28 (UTC)

This build has some issues with the way it calls cargo. Specifically the final installed binary is not the one built in build(), it is the one made in check() that is compiled using the bench profile. This issue and how to fix it is documented in Rust package guidelines, along with some other improvements this could use. I'm still wiling to help maintain this if you'd like a hand.

alerque commented on 2020-05-16 12:55 (UTC) (edited on 2020-05-16 12:56 (UTC) by alerque)

Upstream URL is still not fixed. This also doen't need git to build, and there are a few other improvements that could be made. Please consider adding me as a co-maintainer so I can fix these issues, or at least apply this patch using git am < file.ptach:

From fcaaedf371441a922ca82073ff41f74ed86845c3 Mon Sep 17 00:00:00 2001
From: Caleb Maclennan <caleb@alerque.com>
Date: Sat, 16 May 2020 15:51:05 +0300
Subject: [PATCH] Overhaul packaging: fix upstream URL and dependencies

Signed-off-by: Caleb Maclennan <caleb@alerque.com>
---
 xi-core/.SRCINFO |  9 ++++-----
 xi-core/PKGBUILD | 28 +++++++++++++++++-----------
 2 files changed, 21 insertions(+), 16 deletions(-)

diff --git a/xi-core/.SRCINFO b/xi-core/.SRCINFO
index b13da33..8d7da92 100644
--- a/xi-core/.SRCINFO
+++ b/xi-core/.SRCINFO
@@ -1,15 +1,14 @@
 pkgbase = xi-core
    pkgdesc = A modern editor with a backend written in Rust
    pkgver = 0.3.0
-   pkgrel = 1
-   url = https://github.com/google/xi-editor
+   pkgrel = 2
+   url = https://github.com/xi-editor/xi-editor
    arch = x86_64
    arch = i686
    license = Apache
-   makedepends = git
    makedepends = cargo
-   depends = gcc-libs
-   source = https://github.com/xi-editor/xi-editor/archive/v0.3.0.tar.gz
+   provides = xi-editor
+   source = xi-core-0.3.0.tar.gz::https://github.com/xi-editor/xi-editor/archive/v0.3.0.tar.gz
    sha256sums = e42998ad9b6d6df0f797afd005f9c1286aad24c30a77d0dd380730c248274b8d

 pkgname = xi-core
diff --git a/xi-core/PKGBUILD b/xi-core/PKGBUILD
index 209548f..f5fabf4 100644
--- a/xi-core/PKGBUILD
+++ b/xi-core/PKGBUILD
@@ -1,29 +1,35 @@
 # Maintainer: Philip Goto <philip.goto@gmail.com>
+# Contributor: Caleb Maclennan <caleb@alerque.com>

 pkgname=xi-core
+_project=xi-editor
 pkgver=0.3.0
-pkgrel=1
+pkgrel=2
 pkgdesc='A modern editor with a backend written in Rust'
 arch=('x86_64' 'i686')
-url='https://github.com/google/xi-editor'
+url="https://github.com/$_project/$_project"
 license=('Apache')
-depends=('gcc-libs')
-makedepends=('git' 'cargo')
-source=("https://github.com/xi-editor/xi-editor/archive/v0.3.0.tar.gz")
+makedepends=('cargo')
+provides=('xi-editor')
+source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz")
 sha256sums=('e42998ad9b6d6df0f797afd005f9c1286aad24c30a77d0dd380730c248274b8d')

+prepare() {
+    cd "$_project-$pkgver/rust"
+    cargo fetch --locked
+}

 build() {
-    cd "xi-editor-${pkgver}/rust"
-    cargo build --release --locked --all-features
+    cd "$_project-$pkgver/rust"
+    cargo build --locked --offline --release --all-features
 }

 check() {
-    cd "xi-editor-${pkgver}/rust"
-    cargo test --release --locked
+    cd "$_project-$pkgver/rust"
+    cargo test --locked --offline --release
 }

 package() {
-    cd "xi-editor-${pkgver}/rust"
-    install -Dm 755 "target/release/xi-core" -t "$pkgdir/usr/bin"
+    cd "$_project-$pkgver/rust"
+    install -Dm0755 -t "$pkgdir/usr/bin" "target/release/$pkgname"
 }
-- 
2.26.2

alerque commented on 2020-03-30 10:23 (UTC)

Github repository namespace has changed. Also why is this package called xi-core instead of xi-editor? I had some trouble finding it in the AUR.