summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: b90085e50e402ed238620c66372609b854286616 (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
# Maintainer: Yuriy Gabuev <yugabuev at gmail.com>

pkgname=river-shifttags-git
_pkgname=river-shifttags
pkgver=0.1.0.r0.g541bce8
pkgrel=1
pkgdesc="A small utility for the river Wayland compositor to rotate the focused tags"
arch=(x86_64)
url="https://gitlab.com/akumar-xyz/river-shifttags"
license=(GPL)
depends=(river)
makedepends=(git)
provides=('river-shifttags')
source=("git+${url}.git")
sha256sums=('SKIP')

pkgver() {
  cd "${srcdir}/${_pkgname}"
  git describe --long --tags --abbrev=7 | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
  cd "${srcdir}/${_pkgname}"
  make
}

package() {
  cd "${srcdir}/${_pkgname}"
  install -Dm 755 -t "${pkgdir}/usr/bin" ./river-shifttags
  install -Dm 644 -t "${pkgdir}/usr/share/man/man1" ./river-shifttags.1
}