blob: e467221944e9939aea27bfe45d90497c88f4fb06 (
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
|
# Maintainer: shtrophic <aur at shtrophic dot net>
# Contributor: Nebulosa <nebulosa2007-at-yandex-dot-ru>
_pkgname=xwayland-satellite
pkgname="$_pkgname-git"
pkgver=0.2.r9.g601223d
pkgrel=2
pkgdesc="Xwayland outside your Wayland - git version"
arch=(x86_64)
url="https://github.com/Supreeeme/$_pkgname"
license=(MPL-2.0)
depends=(
gcc-libs
glibc
libxcb
xcb-util-cursor
xorg-server-xwayland
)
makedepends=(
git
clang
rust
)
provides=($_pkgname)
conflicts=($_pkgname)
options=(!debug)
source=(git+$url.git xwayland-satellite.service)
b2sums=('SKIP'
'3fffedae358d637670366a8cafe0edbcaa482e3eb108f8af8e1520864e845980ea649b62d2c6fdff141cc28716a1dcfcf40cfbf83f4f2b0906f12cba6ff66f4b')
pkgver() {
cd $_pkgname
git describe --long --abbrev=7 | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}
prepare() {
cd $_pkgname
export RUSTUP_TOOLCHAIN=stable
export CARGO_HOME="$srcdir"/.cargo
cargo fetch --locked --target "$(rustc -vV | sed -n 's/host: //p')"
}
build() {
cd $_pkgname
export RUSTUP_TOOLCHAIN=stable
export CARGO_HOME="$srcdir"/.cargo
export RUSTFLAGS="--remap-path-prefix=$srcdir=/"
export CARGO_TARGET_DIR=target
cargo build --frozen --release
}
package() {
install -Dm644 "$srcdir"/$_pkgname.service -t "$pkgdir"/usr/lib/systemd/user/
install -Dm755 $_pkgname/target/release/$_pkgname -t "$pkgdir"/usr/bin/
}
|