blob: 16453834c13b5fa74d2f9186cbd7c372774cb6f6 (
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
37
38
|
# Maintainer: David Scholberg <recombinant.vector@gmail.com>
pkgname='goblocks'
pkgver=1.4.0
pkgrel=1
pkgdesc='Fast, lightweight i3status replacement written in Go'
arch=('x86_64'
'i686')
url='https://github.com/davidscholberg/goblocks'
license=('custom:BSD')
install='goblocks.install'
makedepends=('git'
'go>=1.7.0')
optdepends=('alsa-utils: volume status support'
'zfs-utils: zfs status support')
_gopgkname='github.com/davidscholberg/goblocks'
_giturl="https://$_gopgkname.git"
prepare() {
rm -rf "$srcdir"/{bin,pkg,src}
git clone --branch "$pkgver" --depth 1 "$_giturl" "$srcdir/src/$_gopgkname"
}
build() {
GOPATH="$srcdir" go get -v "$_gopgkname"
}
package() {
_gitdir="$srcdir/src/$_gopgkname"
install -p -m 755 -D -t "$pkgdir/usr/bin/" "$srcdir/bin/goblocks"
install -m 644 -D -t "$pkgdir/usr/share/$pkgname/" "$_gitdir/README.md"
install -m 644 -D -t "$pkgdir/usr/share/$pkgname/config/" \
"$_gitdir/config/goblocks-full.yml"
install -m 644 -D -t "$pkgdir/usr/share/licenses/$pkgname/" \
"$_gitdir/LICENSE"
}
|