aboutsummaryrefslogtreecommitdiffstats
path: root/testing/piknik/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'testing/piknik/APKBUILD')
-rw-r--r--testing/piknik/APKBUILD44
1 files changed, 44 insertions, 0 deletions
diff --git a/testing/piknik/APKBUILD b/testing/piknik/APKBUILD
new file mode 100644
index 0000000000..8a187395fb
--- /dev/null
+++ b/testing/piknik/APKBUILD
@@ -0,0 +1,44 @@
+# Contributor: Kevin Daudt <ops@ikke.info>
+# Maintainer: Kevin Daudt <ops@ikke.info>
+pkgname=piknik
+pkgver=0.9.1
+pkgrel=0
+pkgdesc="Copy/paste anything over the network"
+url="https://github.com/jedisct1/piknik"
+arch="all"
+license="BSD-2-Clause"
+makedepends="go glide"
+source="$pkgname-$pkgver.tar.gz::https://github.com/jedisct1/piknik/archive/$pkgver.tar.gz"
+builddir="$srcdir/src/github.com/jedisct1/$pkgname"
+
+prepare() {
+ mkdir -p ${builddir%/*}
+ mv "$srcdir"/$pkgname-$pkgver "$builddir"/
+ cd "$builddir"
+ export GOPATH="$srcdir"
+ glide install
+
+ default_prepare
+}
+
+build() {
+ cd "$builddir"
+
+ export GOPATH="$srcdir"
+ go build
+}
+
+check() {
+ cd "$builddir"
+
+ export GOPATH="$srcdir"
+ ./test.sh
+}
+
+package() {
+ cd "$builddir"
+
+ install -Dm0755 piknik "$pkgdir"/usr/bin/piknik
+}
+
+sha512sums="71718f1026bd5a7e18e2ab94e7d60741ba52e9f3b81db1bbf7e9b8c1a787a29d05159d60b6e8b901cdbae5cf2d05014d104f51475e3ee98168911b0756dbfd68 piknik-0.9.1.tar.gz"