summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: aa90699f6af3ecac5f98889b257e58e1e3c51660 (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
# Maintainer: Aakash Sharma <aakashsensharma@gmail.com>
pkgname='wayshot-musl-git'
_pkgname="wayshot"
pkgver=1
pkgrel=1
arch=('x86_64')
url="https://github.com/waycrate/wayshot"
pkgdesc="A screenshot tool for wlroots compositors."
license=('BSD')
conflicts=('wayshot-glib-git')
depends=('slurp')
makedepends=('rustup' 'make' 'git')
source=("$_pkgname::git+https://github.com/waycrate/$_pkgname")
sha256sums=('SKIP')

build(){
	cd "$_pkgname"
	make setup
	make
}

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

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)"
}