diff options
author | eyelash | 2017-03-13 10:01:39 +0100 |
---|---|---|
committer | eyelash | 2017-03-13 10:01:39 +0100 |
commit | 5e988e6fd3dfd79cd161452dffeb9332c373d8df (patch) | |
tree | 63ed4aad390d173023f8c2ff7364b6278a0b0205 | |
parent | 7aff0fcea8af3b23c3502cccd6cb3084375cf7d9 (diff) | |
download | aur-5e988e6fd3dfd79cd161452dffeb9332c373d8df.tar.gz |
update
-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" } |