diff options
-rw-r--r-- | .SRCINFO | 4 | ||||
-rw-r--r-- | PKGBUILD | 15 |
2 files changed, 12 insertions, 7 deletions
@@ -1,6 +1,6 @@ pkgbase = xi-core-git pkgdesc = A modern editor with a backend written in Rust. - pkgver = r242.80445b9 + pkgver = r314.72295fa pkgrel = 1 url = https://github.com/google/xi-editor arch = i686 @@ -9,7 +9,7 @@ pkgbase = xi-core-git makedepends = git makedepends = cargo conflicts = xi-core - source = git+https://github.com/google/xi-editor.git + source = xi-core-git::git+https://github.com/google/xi-editor.git sha256sums = SKIP pkgname = xi-core-git @@ -1,7 +1,7 @@ # Maintainer: eyelash <eyelash@users.noreply.github.com> pkgname=xi-core-git -pkgver=r242.80445b9 +pkgver=r314.72295fa pkgrel=1 pkgdesc='A modern editor with a backend written in Rust.' arch=('i686' 'x86_64') @@ -9,15 +9,20 @@ url='https://github.com/google/xi-editor' license=('Apache') makedepends=('git' 'cargo') conflicts=('xi-core') -source=('git+https://github.com/google/xi-editor.git') +source=("$pkgname"::'git+https://github.com/google/xi-editor.git') sha256sums=('SKIP') pkgver() { - cd "$srcdir/xi-editor" + cd "$srcdir/$pkgname" printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" } +build() { + cd "$srcdir/$pkgname/rust" + cargo build --release +} + package() { - cd "$srcdir/xi-editor/rust" - cargo install --root "$pkgdir/usr" + cd "$srcdir/$pkgname/rust" + install -D target/release/xi-core "$pkgdir/usr/bin/xi-core" } |