blob: 30e1aacd1b381ed1c5c7e103e03a2903c37dfa0a (
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
|
# Contributor: Carlo Landmeter <clandmeter@alpinelinux.org>
# Maintainer: Rasmus Thomsen <oss@cogitri.dev>
pkgname=drone-cli
pkgver=1.1.1
pkgrel=0
pkgdesc="Drone CLI"
url="https://github.com/drone/drone-cli"
arch="all"
license="Apache-2.0"
makedepends="go"
source="drone-cli-$pkgver.tar.gz::https://github.com/drone/drone-cli/archive/v$pkgver.tar.gz"
builddir="$srcdir/src/github.com/drone/$pkgname"
prepare() {
mkdir -p ${builddir%/*}
mv "$srcdir"/$pkgname-$pkgver "$builddir"/
cd "$builddir"
default_prepare
}
build() {
export GOPATH="$srcdir"
go build -ldflags "-X main.version=${pkgver}" -o bin/drone ./drone
}
check() {
go test ./...
}
package() {
install -Dm755 "$builddir"/bin/drone "$pkgdir"/usr/bin/drone
}
sha512sums="bc75683a6aea1d11c22a635a4386c3c0ead17f15f0b59ebc692fa0a5a346e90b3e6d1b16bdc21f807c91080f3c969d254db2cefb07113b3e4b3409425eebacc3 drone-cli-1.1.1.tar.gz"
|