blob: 8a187395fbccf6eb68c642c71199bad0bd44edfa (
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
38
39
40
41
42
43
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"
|