summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 6016c89f6ef86d37fafb6709798285c55048e3fd (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
35
# Maintainer: Tobias Manske <aur at rad4day dot de>
options=(!strip)
pkgname=grobi-rotate-git
pkgver=r137.0619061
pkgrel=1
pkgdesc="grobi automates applying xrandr profiles when outputs change. This version supports rotation specifiers"
arch=('i686' 'x86_64')
url="https://github.com/rad4day/grobi"
license=('BSD')
depends=('glibc')
makedepends=('git' 'go>=1.4')
provides=('grobi')
conflicts=('grobi' 'grobi-git')
source=("${pkgname}::git+https://github.com/rad4day/grobi")
md5sums=('SKIP')

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

build() {
  cd "$pkgname"
  go build
}

package() {
  install -Dm755 "$pkgname/grobi"    "$pkgdir/usr/bin/grobi"
  install -Dm644 "$pkgname/LICENSE"   "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
  install -Dm644 "$pkgname/README.md" "$pkgdir/usr/share/doc/$pkgname/README"
  install -Dm644 "$pkgname/doc/grobi.service" "$pkgdir/usr/lib/systemd/user/grobi.service"
  install -Dm644 "$pkgname/contrib/grobi.bash" "$pkgdir/usr/share/bash-completion/completions/grobi"
}

# vim:set ts=2 sw=2 et: