blob: d6db4829f9aa5b80d49b61cda44ce41a6a94c8da (
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
|
# Maintainer: Orhun Parmaksız <orhun@archlinux.org>
pkgname=rio-git
pkgver=0.1.17.r177.g29484e7a2
pkgrel=1
pkgdesc="A hardware-accelerated GPU terminal emulator powered by WebGPU (git)"
arch=('x86_64')
url="https://github.com/raphamorim/rio"
license=('MIT')
# https://raphamorim.io/rio/install/#arch-linux
depends=(
'gcc-libs'
'fontconfig'
'freetype2'
'glibc'
'hicolor-icon-theme'
)
makedepends=(
'git'
'cargo'
'cmake'
'desktop-file-utils'
'libxcb'
'libxkbcommon'
'python'
)
conflicts=("${pkgname%-git}")
provides=("${pkgname%-git}")
source=("$pkgname::git+${url}")
sha512sums=('SKIP')
options=('!lto')
pkgver() {
cd "$pkgname"
git describe --long --tags --match="v[0-9]*" | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}
prepare() {
cd "$pkgname"
cargo fetch --locked --target "$(rustc -vV | sed -n 's/host: //p')"
}
build() {
cd "$pkgname"
cargo build --frozen --release --all-features
}
check() {
cd "$pkgname"
cargo test --frozen --workspace
}
package() {
cd "$pkgname"
install -Dm0755 -t "${pkgdir}/usr/bin/" "target/release/${pkgname%-git}"
install -Dm0644 -t "${pkgdir}/usr/share/doc/${pkgname}/" "README.md"
install -Dm0644 -t "${pkgdir}/usr/share/licenses/${pkgname}/" "LICENSE"
desktop-file-install -m 644 --dir "${pkgdir}/usr/share/applications/" "misc/${pkgname%-git}.desktop"
install -Dm0644 "docs/static/assets/${pkgname%-git}-logo.svg" "$pkgdir/usr/share/icons/hicolor/scalable/apps/${pkgname%-git}.svg"
}
# vim: ts=2 sw=2 et:
|