summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: e11ad63f67b98e921ccbfe86d2fd59fb2c7ffb4b (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
# Maintainer: Joey Eamigh @JoeyEamigh on GitHub
pkgname=wayclip-manager-git
pkgver=any
pkgrel=2
pkgdesc="an opinionated Wayland package manager"
arch=('any')
url=""
license=('GPL')
groups=()
depends=('bemenu')
makedepends=('git' 'cargo-nightly')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
replaces=()
backup=()
options=()
install=
source=('wayclip::git+https://github.com/JoeyEamigh/wayclip.git')
noextract=()
md5sums=('SKIP')

pkgver() {
	cd "$srcdir/${pkgname%-manager-git}"
	printf "%s" "$(git describe --always --long | sed 's/\([^-]*-\)g/r\1/;s/-/./g')"
}

prepare() {
	cd "$srcdir/${pkgname%-manager-git}"

	export RUSTUP_TOOLCHAIN=nightly
	cargo fetch --locked --target "$CARCH-unknown-linux-gnu"
}

build() {
	cd "$srcdir/${pkgname%-manager-git}"
	./install.sh
}

check() {
	cd "$srcdir/${pkgname%-manager-git}"
}

package() {
	cd "$srcdir/${pkgname%-manager-git}"
}