blob: a02f3f5af4d2f957f48b49d7d1a4c658da3b83c1 (
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
36
|
# Maintainer: H. Rosendahl <h [at] ro [dot] sendahl [dot] de>
# Maintainer: Alexander Neumann <alexander@bumpern.de>
options=(!strip)
pkgname=grobi-git
pkgver=r123.fd80d7f
pkgrel=1
pkgdesc="grobi automates applying xrandr profiles when outputs change"
arch=('i686' 'x86_64')
url="https://github.com/fd0/grobi"
license=('BSD')
depends=('glibc')
makedepends=('git' 'go>=1.4')
provides=('grobi')
conflicts=('grobi')
source=("${pkgname}::git+https://github.com/fd0/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:
|