36 lines
1.0 KiB
Bash
36 lines
1.0 KiB
Bash
|
# Maintainer: Sl@ny <webmaster [at] slany [dot] work>
|
||
|
pkgname=drone-runner-docker
|
||
|
pkgver=1.6.3
|
||
|
pkgrel=1
|
||
|
pkgdesc="Drone is a Continuous Delivery platform built on Docker, written in Go - Free enterprise variant"
|
||
|
arch=('x86_64')
|
||
|
url="https://drone.io"
|
||
|
license=('Apache')
|
||
|
makedepends=('go' 'git' 'gcc')
|
||
|
depends=('docker')
|
||
|
backup=('etc/drone/agent')
|
||
|
source=(git+https://github.com/drone-runners/$pkgname.git#tag=v$pkgver
|
||
|
'drone-agent.service'
|
||
|
'agent.conf')
|
||
|
sha256sums=('SKIP'
|
||
|
'dda7f52cb406beeb16024eb077ecfdd4b05929a955f796214646a16db5898ea2'
|
||
|
'2c1a13f0d4bf83c1716db1b3179f38da7b9f0e762f781a8a6ab13cc683f057fe')
|
||
|
|
||
|
build() {
|
||
|
cd "$srcdir/$pkgname"
|
||
|
go build -a -v -trimpath -buildmode=pie -mod=readonly -ldflags '-w -s' .
|
||
|
}
|
||
|
|
||
|
package() {
|
||
|
cd "$srcdir"
|
||
|
|
||
|
# binaries
|
||
|
install -Dm755 "$pkgname/$pkgname" "$pkgdir"/usr/bin/drone-agent
|
||
|
|
||
|
# service
|
||
|
install -Dm644 drone-agent.service "$pkgdir/usr/lib/systemd/system/drone-agent.service"
|
||
|
|
||
|
# config
|
||
|
install -Dm644 agent.conf "$pkgdir/etc/drone/agent"
|
||
|
}
|