summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 3d4987e961a6ab899caf93822b046577a3c841f4 (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
# SPDX-License-Identifier: 0BSD
# Maintainer: M Stoeckl <com dоt mstoeckl аt wppkgb>
pkgname=wborder-git
pkgver=0.1.0.r0.g084da9f
pkgrel=1
pkgdesc='Add a colored border to Wayland clients run under this program'
license=('GPL-3.0-or-later')
makedepends=('git' 'rust' 'cargo')
url='https://gitlab.freedesktop.org/mstoeckl/wborder'
source=('git+https://gitlab.freedesktop.org/mstoeckl/wborder.git')
sha512sums=('SKIP')
arch=('i686' 'x86_64' 'arm' 'armv6h' 'armv7h' 'aarch64')
provides=('wborder')
conflicts=('wborder')

pkgver() {
	cd wborder
	git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g;s/^v//'
}

prepare() {
	cd wborder
	cargo fetch --locked --target "$(rustc -vV | sed -n 's/host: //p')"
}

build() {
	cd wborder
	CARGO_INCREMENTAL=0 cargo build --release --locked --offline
}

package() {
	cd wborder
	install -D -m755 "target/release/wborder" "$pkgdir/usr/bin/wborder"
}