blob: aab7031f37fe94184be0286623f06e8a2d10d9d9 (
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
29
30
|
# Maintainer: Luis Martinez <luis dot martinez at disroot dot org>
pkgname=kiro
pkgver=0.4.3
pkgrel=1
pkgdesc="A tiny UTF-8 text editor"
arch=('x86_64')
url="https://github.com/rhysd/kiro-editor"
license=('MIT')
depends=('gcc-libs')
makedepends=('cargo')
source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz")
sha256sums=('47081ee06b0fde498905c2ad9a2b215eef397eebe2a046ff10c70f44b5db52a1')
build() {
cd "kiro-editor-$pkgver"
cargo build --release --locked --all-features --target-dir=target
}
check() {
cd "kiro-editor-$pkgver"
cargo test --release --locked --target-dir=target
}
package() {
cd "kiro-editor-$pkgver"
install -Dm 755 "target/release/$pkgname" -t "$pkgdir/usr/bin/"
install -Dm 644 LICENSE.txt -t "$pkgdir/usr/share/licenses/$pkgname"
install -Dm 644 README.md -t "$pkgdir/usr/share/doc/$pkgname"
}
|