summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a320433f132c7e9b7418ff3b18529e00d775adcb (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
# Maintainer: Kimiblock Moe

pkgname="way-secure"
pkgver=0.2.0
pkgrel=1
pkgdesc='Create wayland security contexts'
arch=('x86_64')
url="https://git.sr.ht/~whynothugo/way-secure"
license=('ISC')
provides=()
depends=()
options=(lto)
makedepends=(git cargo rust)
source=(
	"$pkgname::git+https://git.sr.ht/~whynothugo/way-secure#tag=v${pkgver}"
)

function prepare() {
	cd "${pkgname}"
	export RUSTUP_TOOLCHAIN=stable
	cargo fetch --target "$CARCH-unknown-linux-gnu"
}

build() {
	cd "${pkgname}"
	export RUSTUP_TOOLCHAIN=stable
	export CARGO_TARGET_DIR=target
	cargo build --release --frozen --all-features --locked
}

function package() {
	cd "${pkgname}"
	install -Dm 755 ./target/release/way-secure "${pkgdir}/usr/bin/way-secure"
}

sha256sums=('844d67b582f4d9e22d5bd0d11c80bbe25c21a58030bc6dfd3c2b65768754ce39')