blob: da7de6dd89bedd8c6da793cc3c4fcabfe4fd0f27 (
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
|
# Maintainer: PeroSar <perosar1111@gmail.com>
pkgname=pero-editor
pkgver=0.1.0
pkgrel=2
pkgdesc="Simple text-editor written in rust"
url=https://pero-editor.perosar.tech
license=("MIT")
arch=("x86_64")
makedepends=("cargo")
source=("https://perosar.tilde.team/$pkgname/$pkgver.tar.gz")
sha256sums=("00fe018e46d3ab5463d7ea5d49aa7bfa86664bfd5fd69014f775f2f7b86ce030")
build() {
cd "$pkgname-$pkgver"
cargo build --release
}
package() {
cd "$pkgname-$pkgver"
# Final executable
install -Dm755 target/release/pe "$pkgdir/usr/bin/pe"
# License file
install -Dm644 LICENSE "$pkgdir/usr/share/doc/pero-editor/LICENSE"
# HTML documentation
cp --recursive docs "$pkgdir/usr/share/doc/pero-editor/html"
# Symlink
ln --symbolic --force "$pkgdir/usr/bin/pe" "$pkgdir/usr/bin/pero-editor"
}
|