summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: eda5cdc06e72b91e3d8e11d0968374ad8f8443a8 (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
# Maintainer: Aakash Sharma <aakashsensharma@gmail.com>
pkgname='wayout-git'
_pkgname="wayout"
pkgver=1.0.0.6.gea8ed0b
pkgrel=2
arch=('x86_64')
url="https://git.sr.ht/~shinyzenith/wayout"
pkgdesc="A simple output management tool for wlroots based compositors"
license=('BSD')
makedepends=('rustup' 'git')
conflicts=('wayout-bin')
source=("$_pkgname::git+https://git.sr.ht/~shinyzenith/$_pkgname")
sha256sums=('SKIP')

build(){
	cd "$_pkgname"
	cargo build --release
}

package() {
	cd "$_pkgname"
	install -Dm 755 ./target/release/wayout "$pkgdir/usr/bin/wayout"
}

pkgver() {
	cd $_pkgname
	echo "$(grep '^version =' Cargo.toml|head -n1|cut -d\" -f2|cut -d\- -f1).$(git rev-list --count HEAD).g$(git rev-parse --short HEAD)"
}