blob: 4948bd07c0d7229d34f20d93853d2997945d85a9 (
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
|
# Maintainer: Raphael Nestler (rnestler) <raphael.nestler@gmail.com>
_pkgname=redmine-cli
pkgname="${_pkgname}-go"
pkgver=0.1.6
pkgrel=1
pkgdesc="A CLI tool to interact with the Redmine project management system."
arch=('x86_64')
url="https://github.com/MrJeffLarry/redmine-cli"
license=('MIT')
makedepends=('go')
source=("${_pkgname}-${pkgver}.tar.gz::https://github.com/MrJeffLarry/redmine-cli/archive/v${pkgver}.tar.gz")
sha256sums=('d88ec9f0e13cc516ba19ec6a70edc8ed3f5c4e94b80a05d626688ff857c1402e')
prepare() {
cd "$_pkgname-$pkgver"
mkdir -p build/
}
build() {
cd "$_pkgname-$pkgver"
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"
go build -ldflags "-s -w -X main.version=${pkgver}-arch" -o build/red-cli ./cmd/red/
}
package() {
cd "$_pkgname-$pkgver"
install -Dm755 build/red-cli "$pkgdir"/usr/bin/red-cli
}
|