summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: af56bc36e2bc7784e30817974c6ae53159f4ff13 (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: Ilya Zlobintsev <ilya.zl@protonmail.com>
pkgname=sway-marker-git
pkgver=r5.4cf6dbf
pkgrel=1
license=("GPL")
pkgdesc="Popup for using vim-like marks in sway"
url="https://github.com/ilyazzz/sway-marker"
makedepends=("rust")
depends=("gtk3" "gtk-layer-shell")
arch=("x86_64" "arch64")
source=("git+https://github.com/ilyazzz/sway-marker.git")
sha512sums=("SKIP")

pkgver() {
	cd sway-marker
	printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
	cd sway-marker
	cargo build --release
}

package() {
	cd $srcdir/sway-marker
	mkdir -p $pkgdir/usr/bin
	install -Dm755 target/release/sway-marker $pkgdir/usr/bin/
}