blob: 540b6379114bf56b27eabba1e0d5a1bce9b8b939 (
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
39
|
# Maintainer: Ali <ali205412@github.com>
pkgname=yamli-editor
pkgver=2.0.1
pkgrel=1
pkgdesc="A native Yamli editor for Wayland"
arch=('x86_64')
url="https://github.com/ali205412/yamli-editor"
license=('MIT')
depends=('gtk3' 'webkit2gtk')
makedepends=('rust' 'cargo')
source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz")
sha256sums=('SKIP')
prepare() {
cd "$pkgname-$pkgver"
cargo fetch --locked
}
build() {
cd "$pkgname-$pkgver"
cargo build --release --locked
}
package() {
cd "$pkgname-$pkgver"
# Install binary
install -Dm755 "target/release/$pkgname" "$pkgdir/usr/bin/$pkgname"
# Install config file
install -Dm644 "config.toml" "$pkgdir/etc/$pkgname/config.toml"
# Install desktop file
install -Dm644 "yamli-editor.desktop" "$pkgdir/usr/share/applications/yamli-editor.desktop"
# Install license
install -Dm644 "LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
|