blob: 7080ec4da70f2a2e8730c8e87028a9f369752822 (
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
|
# Maintainer: Kuan-Yen Chou <kuanyenchou@gmail.com>
pkgname=openhue-cli
pkgver=0.16
pkgrel=1
pkgdesc='CLI for interacting with Philips Hue smart lighting systems'
depends=()
optdepends=()
makedepends=('go')
arch=('x86_64')
url='https://www.openhue.io/cli/openhue-cli'
license=('Apache-2.0')
provides=('openhue')
source=("https://github.com/openhue/openhue-cli/archive/refs/tags/$pkgver.tar.gz")
sha256sums=('f023609db160009487ae4c8bf8eff03d7d07020fb437730fe3326ccaf33153ff')
build() {
export CGO_CPPFLAGS="${CPPFLAGS}"
export CGO_CFLAGS="${CFLAGS}"
export CGO_CXXFLAGS="${CXXFLAGS}"
export CGO_LDFLAGS="${LDFLAGS}"
export GOFLAGS="-buildmode=pie -trimpath -ldflags=-linkmode=external -mod=readonly -modcacherw"
cd "$srcdir/$pkgname-$pkgver"
mkdir -p build
go build -o build ./...
}
check() {
cd "$srcdir/$pkgname-$pkgver"
go test ./...
}
package() {
cd "$srcdir/$pkgname-$pkgver"
install -Dm 755 "build/$pkgname" "$pkgdir/usr/bin/openhue"
}
# vim: set sw=4 ts=4 et:
|