summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 53ac14d2d0e955a4dacdbe293d0a4f19f5409ea3 (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
# Maintainer: Mark Karlinsky <mark.devnull@gmail.com>
# Contributor: Nebulosa  <nebulosa2007-at-yandex-dot-ru>

pkgname=xwayland-satellite-nosystemd
pkgver=0.5
pkgrel=1
pkgdesc="Xwayland outside your Wayland (without systemd feature)"
arch=(x86_64)
url="https://github.com/Supreeeme/xwayland-satellite"
license=('MPL-2.0')
depends=(
  'libxcb'
  'xcb-util-cursor'
  'xorg-xwayland'
  'gcc-libs'
  'glibc'
)
makedepends=(
  'git'
  'cargo'
  'clang'
)
provides=("xwayland-satellite=$pkgver")
conflicts=("xwayland-satellite")
options=()
_tag=5c7fe006d2e3617c9649f71f571e06c0e2158ba6
source=("git+${url}.git#tag=${_tag}")
sha256sums=("da5d99a013a835527f02a6bab07684273b71145076f41ecc5f118fbaddbb72d9")

prepare() {
  cd "$srcdir/xwayland-satellite"
  export RUSTUP_TOOLCHAIN=stable
  export CARGO_HOME="$(pwd)/.cargo"
  cargo fetch --locked --target "$(rustc -vV | sed -n 's/host: //p')"
}

build() {
  cd "$srcdir/xwayland-satellite"
  export RUSTFLAGS="--remap-path-prefix=$srcdir=/"
  export RUSTUP_TOOLCHAIN=stable
  export CARGO_HOME="$(pwd)/.cargo"
  export CARGO_TARGET_DIR=target
  cargo build --frozen --release
}

package() {
  cd "$srcdir/xwayland-satellite"
  install -Dm755 "target/release/xwayland-satellite" -t "$pkgdir/usr/bin/"
}