summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 713692a8e04100c6c67f04f6b4b282c1422cdb45 (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
# Maintainer: Yo'av Moshe <archlinux@yoavmoshe.com>
_pkgname=clapboard
pkgname=clapboard-git
pkgver=r1.73de0ac
pkgrel=2
pkgdesc="Clipboard manager for Wayland"
url="https://github.com/bjesus/clapboard"
arch=("any")
license=("MIT")
depends=('wl-clipboard')
optdepends=('tofi: a recommended launcher')
makedepends=('rust')
source=("git+https://github.com/bjesus/$_pkgname.git")
sha512sums=("SKIP")

prepare() {
	mv $_pkgname/* .
	cargo fetch --locked --target "$CARCH-unknown-linux-gnu"
}

build() {
	export RUSTUP_TOOLCHAIN=stable
	export CARGO_TARGET_DIR=target
	cargo build --frozen --release --all-features
}

package() {
	install -Dm0755 -t "$pkgdir/usr/bin/" "target/release/$_pkgname"
}