aboutsummaryrefslogtreecommitdiffstats
path: root/community/piknik/APKBUILD
blob: ec5660ad493ac26570df5d9691941d7761e288f1 (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
# Maintainer: Kevin Daudt <kdaudt@alpinelinux.org>
pkgname=piknik
pkgver=0.10.1
pkgrel=6
pkgdesc="Copy/paste anything over the network"
url="https://github.com/jedisct1/piknik"
arch="all"
license="BSD-2-Clause"
makedepends="go"
source="$pkgname-$pkgver.tar.gz::https://github.com/jedisct1/piknik/archive/$pkgver.tar.gz
	go.mod
	go.sum
	"

export GOFLAGS="$GOFLAGS -mod=mod"

prepare() {
	default_prepare

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

build() {
	 go build ./...
}

check() {
	./test.sh
}

package() {
	install -Dm0755 piknik "$pkgdir"/usr/bin/piknik
}

sha512sums="265967982b8ca8f267096894d0438e14cc0691717b77a1350372eb84d346ea6cebfa48106277e34c27284d09cf7cc3bd0dada75948bed0e50ccf049ba3820d92  piknik-0.10.1.tar.gz
1e7a22fb35f5c817721a6ed35a9dbbc83289191e26def38176a0286c7655e353e03120023c9db4a0ca5f05a6ef40a0b884ae025084c9033c2feb685f00d9c524  go.mod
a93f910b30bf108264d2427e42bdf7fa5b11a39f3e5c2ac3c8819db667220e692afd583250d009a7c7328107e99bd9260fe3e4edbfa2c9d8b3fcaee403424539  go.sum"