summaryrefslogtreecommitdiff
path: root/community/piknik/APKBUILD
blob: 7af0ae182f426e2a8879fcdd89f73bb624655b85 (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
# Maintainer: Kevin Daudt <kdaudt@alpinelinux.org>
pkgname=piknik
pkgver=0.9.1
pkgrel=3
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
	"

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="71718f1026bd5a7e18e2ab94e7d60741ba52e9f3b81db1bbf7e9b8c1a787a29d05159d60b6e8b901cdbae5cf2d05014d104f51475e3ee98168911b0756dbfd68  piknik-0.9.1.tar.gz
1e7a22fb35f5c817721a6ed35a9dbbc83289191e26def38176a0286c7655e353e03120023c9db4a0ca5f05a6ef40a0b884ae025084c9033c2feb685f00d9c524  go.mod
a93f910b30bf108264d2427e42bdf7fa5b11a39f3e5c2ac3c8819db667220e692afd583250d009a7c7328107e99bd9260fe3e4edbfa2c9d8b3fcaee403424539  go.sum"