aboutsummaryrefslogtreecommitdiffstats
path: root/community/easypki/APKBUILD
blob: 80684d35173433b926147c9dc645c86e4fc3c741 (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
# Contributor: Carlo Landmeter <clandmeter@alpinelinux.org>
# Maintainer: Carlo Landmeter <clandmeter@alpinelinux.org>
pkgname=easypki
pkgver=1.1.0
pkgrel=6
pkgdesc="Creating a certificate authority the easy way"
url="https://github.com/google/easypki"
arch="all !mips64" # build failures on dep github.com/boltdb/bolt
license="Apache-2.0"
makedepends="go"
options="!check"
source="easypki-$pkgver.tar.gz::https://github.com/google/easypki/archive/v$pkgver.tar.gz
	go.mod
	go.sum
	overide-version.patch
	"

prepare() {
	default_prepare

	cp "$srcdir"/go.mod "$srcdir"/go.sum .
}

build() {
	go build -v -ldflags "-s -w" \
		-o "$builddir"/easypki ./cmd/easypki
}

package() {
	install -Dm755 easypki "$pkgdir"/usr/bin/easypki
}


sha512sums="733a61645be46d1437b94e31d537c29b6648e2ff805abfba039154c4e765262c60652cdb42df44c17ae1553794cb667515cb03e4c9dfbfab42f9000f876012ca  easypki-1.1.0.tar.gz
ed50577240e80dfdbe7ec10545a8bb1953834e4644884a90b65fbd93451fd4d29a9387dd87a7c9e173cd1da3b571e34d5af04272a2859ac48cc9a2ea709f34c9  go.mod
b3ef1d35d6af534d9c7b28c8e3a299e558c1065a54bc232888e2a7b5cd8d13f6f33e4c27ce3df4ca5875ea934fca2c74c930d595a57265eb0c8b4d6c91f47d37  go.sum
bfe4802694b7921a2a015900d56356dfda0e04a153c2b22c3bc03899c4e60fc2d79a425982f8dbdf08cee4fda0e793687f55c549e1ef657b4ef366705a2b9826  overide-version.patch"