diff options
author | Kevin Daudt <ops@ikke.info> | 2018-02-24 22:50:47 +0000 |
---|---|---|
committer | Carlo Landmeter <clandmeter@alpinelinux.org> | 2018-02-25 15:53:26 +0000 |
commit | 5b2defd1fe234a4ae3f83ddaa8e1d3bacf9b5788 (patch) | |
tree | 902a75dc650a33c1f55fa0c55fd7df4bce74d241 /testing | |
parent | 5357a1a0c34256ccdfedf47571fca4beb718e8d1 (diff) | |
download | aports-5b2defd1fe234a4ae3f83ddaa8e1d3bacf9b5788.tar.bz2 aports-5b2defd1fe234a4ae3f83ddaa8e1d3bacf9b5788.tar.xz |
testing/piknik: new apkbuild
Diffstat (limited to 'testing')
-rw-r--r-- | testing/piknik/APKBUILD | 44 |
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" |