blob: 9bb5308a4fac3b9c4b053cfed33461051d2c3012 (
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
|
# Maintainer: Adrian Perez de Castro <aperez@igalia.com>
pkgdesc='Command line tool for the Semaphore CI service'
pkgname=semaphoreci-cli
pkgver=0.14.1
pkgrel=2
url=https://github.com/semaphoreci/cli
license=(custom:Apache)
arch=(x86_64)
depends=(glibc)
makedepends=(go-pie git)
source=("${pkgname}::git+${url}#tag=v${pkgver}")
sha512sums=(SKIP)
build () {
cd "${pkgname}"
local target_arch
case ${CARCH} in
x86_64) target_arch=amd64 ;;
*)
msg2 "Package not supported on ${CARCH}"
exit 111
;;
esac
GOPATH="${srcdir}/_go" GOOS=linux GOARCH=${target_arch} \
go build -ldflags "-s -w -X cmd.version=${pkgver}-arch" \
-o semaphoreci
chmod -R +w "${srcdir}/_go" # Ugh.
}
package () {
cd "${pkgname}"
install -Dm755 -t "${pkgdir}/usr/bin" semaphoreci
install -Dm644 -t "${pkgdir}/usr/share/licenses/${pkgname}" LICENSE
}
|