# Contributor: Carlo Landmeter # Maintainer: Patrycja Rosa pkgname=drone pkgver=2.16.0 pkgrel=7 pkgdesc="Container-Native, Continuous Delivery Platform" url="https://drone.io/" license="Apache-2.0" arch="all" pkgusers="drone" pkggroups="drone" makedepends="go sqlite-dev" subpackages="$pkgname-doc $pkgname-openrc" install="$pkgname.pre-install" source="https://github.com/harness/drone/archive/v$pkgver/drone-$pkgver.tar.gz drone.initd drone.confd drone.conf " # fail now with missing calls in some template options="net chmod-clean !check" # see: https://github.com/harness/drone/blob/master/BUILDING_OSS export GOFLAGS="$GOFLAGS -tags=libsqlite3,oss,nolimit" export GOCACHE="${GOCACHE:-"$srcdir/go-cache"}" export GOTMPDIR="${GOTMPDIR:-"$srcdir"}" export GOMODCACHE="${GOMODCACHE:-"$srcdir/go"}" build() { go build -o bin/drone-server ./cmd/drone-server } check() { go test ./... } package() { install -Dm755 bin/drone-server \ "$pkgdir"/usr/bin/drone-server install -Dm 644 LICENSE \ "$pkgdir"/usr/share/licenses/$pkgname/LICENSE install -Dm755 "$srcdir"/drone.initd \ "$pkgdir"/etc/init.d/drone install -Dm644 "$srcdir"/drone.confd \ "$pkgdir"/etc/conf.d/drone install -Dm640 -o drone -g drone "$srcdir"/drone.conf \ "$pkgdir"/etc/drone.conf install -dm755 -o drone -g drone "$pkgdir"/var/lib/drone } sha512sums=" ab9dd28d4b52c993b241f08a6065e6ef40d4f08f1db64843d6d05770b7042c4d5897d1ddec79eb677097b2657abce18ef5d7d7819f2959c5d6022e34a2703887 drone-2.16.0.tar.gz 6f3bf95e6b6bd978c3c2d4951676c89853bae3706098a3e609f296d36cb92c3d68a3390d1bc4b57aaf97f914d25d8d5fa88a32a0410f6d049b947c6978db773d drone.initd b2b0d6dbffe987d42292ee0f9c39f8a4e59a62249b62f6bc99369738c17ebe6a699264f13d0e9a4690ebcfd48c4f07637043878f801c1a47fba71f0ef62ca26d drone.confd a12f920b568b88a0a813cffcb8dd3dfa2c8e010e5ab0c7b53f07d8084ab68a5bc8b3b11b9fbc2d171d239f5aa775af8240f926472c1aef3c823aea010fd4ad5a drone.conf "