blob: 552c63e9453e6533281e5a0eb8fd44fa285d560c (
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: Mikael Eriksson <mikael_eriksson@miffe.org>
pkgname=wprs-git
pkgver=r34.64c01e1
pkgrel=1
pkgdesc="Like xpra, but for Wayland, and written in Rust."
arch=(x86_64)
url="https://github.com/wayland-transpositor/wprs"
license=('Apache-2.0')
depends=(libxkbcommon python-psutil)
makedepends=(cargo git)
provides=("wprs")
conflicts=("wprs")
source=('wprs::git+https://github.com/wayland-transpositor/wprs.git')
sha256sums=('SKIP')
options=(!lto)
pkgver() {
cd "$srcdir/wprs"
# Git, tags available
#printf "%s" "$(git describe --long | sed 's/\([^-]*-\)g/r\1/;s/-/./g')"
# Git, no tags available
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
cd "$srcdir/wprs"
cargo build --profile=release-lto
}
package() {
cd "$srcdir/wprs"
install -Dm755 wprs "$pkgdir/usr/bin/wprs"
install -Dm755 target/release-lto/wprsc "$pkgdir/usr/bin/wprsc"
install -Dm755 target/release-lto/wprsd "$pkgdir/usr/bin/wprsd"
install -Dm755 target/release-lto/xwayland-xdg-shell "$pkgdir/usr/bin/xwayland-xdg-shell"
install -Dm644 wprsd.service "$pkgdir/usr/lib/systemd/user/wprsd.service"
}
|