summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 4b4dfc37e4fa643e6a6b3a9f13f822c416b59ab9 (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
39
40
41
42
43
44
45
46
47
48
49
50
# Maintainer: keithamus <archlinux at keithcirkel dot co dot uk>

pkgname=keylight-systray
pkgver=0.1.0.r0.g95e5ddb
pkgrel=1
pkgdesc=" Elgato Keylight systray control golang "
arch=('i686' 'x86_64')
url="https://github.com/mschneider82/keylight-systray"
license=('MIT')
depends=('keylight-control')
makedepends=('git' 'go')
provides=('keylight-systray')
conflicts=('keylight-systray')
source=("git+https://github.com/mschneider82/keylight-systray.git")
sha256sums=('SKIP')


export CGO_CPPFLAGS="${CPPFLAGS}"
export CGO_CFLAGS="${CFLAGS}"
export CGO_CXXFLAGS="${CXXFLAGS}"
export CGO_LDFLAGS="${LDFLAGS}"
export GOFLAGS="-buildmode=pie -ldflags=-linkmode=external -trimpath -mod=readonly -modcacherw"

pkgver() {
  cd "keylight-systray"

  git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
  cd "keylight-systray"

  go build
}

check() {
  cd "keylight-systray"

  #go test ./...
  echo "This package has no tests yet"
}

package() {
  cd "keylight-systray"

  install -Dm755 "keylight-systray" -t "$pkgdir/usr/bin"
  install -Dm644 "README.md" -t "$pkgdir/usr/share/doc/keylight-systray"
  install -Dm644 "LICENSE" -t "$pkgdir/usr/share/licenses/keylight-systray"
}