blob: 9da2883ba576b99cc15e3b4cc0699d7adce43515 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
# Maintainer: eyelash <eyelash@users.noreply.github.com>
pkgname=xi-core-git
pkgver=r314.72295fa
pkgrel=1
pkgdesc='A modern editor with a backend written in Rust.'
arch=('i686' 'x86_64')
url='https://github.com/google/xi-editor'
license=('Apache')
makedepends=('git' 'cargo')
conflicts=('xi-core')
source=("$pkgname"::'git+https://github.com/google/xi-editor.git')
sha256sums=('SKIP')
pkgver() {
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/$pkgname/rust"
install -D target/release/xi-core "$pkgdir/usr/bin/xi-core"
}
|