blob: bee40be9615384c668ca3f73f558087b6732de31 (
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
31
32
33
34
35
36
37
38
|
# Maintainer: Ilaï Deutel <PlMWPh1WSmypRv0JQljz> (echo ... | tr 'A-Za-z' 'l-za-kL-ZA-K' | base64 -d)
pkgname=kibi
pkgver=0.2.2
pkgrel=1
pkgdesc="A tiny text editor, written in Rust"
url="https://github.com/ilai-deutel/kibi"
makedepends=('cargo')
depends=('gcc-libs')
arch=('x86_64' 'i686' 'armv6h' 'armv7h' 'aarch64')
license=('MIT' 'APACHE')
backup=('etc/kibi/config.ini')
source=("https://github.com/ilai-deutel/kibi/archive/v${pkgver}/${pkgname}-${pkgver}.tar.gz")
sha256sums=('df0e2945d9d08fed3a0adbe73c73405641615eb55835675e06e91411fd541e91')
build() {
cd "$pkgname-$pkgver"
cargo build --release --locked --all-features
}
# check() {
# cd "$pkgname-$pkgver"
# cargo test --release --locked
# }
package() {
cd "$pkgname-$pkgver"
# Install binary
install -Dm755 "target/release/kibi" -t "$pkgdir/usr/bin"
# Install configuration files
install -Dm644 "config_example.ini" "$pkgdir/etc/kibi/config.ini"
install -Dm644 syntax.d/* -t "$pkgdir/usr/share/kibi/syntax.d"
# Install license
install -Dm644 LICENSE-MIT -t "$pkgdir/usr/share/licenses/$pkgname"
}
|