mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-05 21:37:15 +02:00
testing/piknik: new apkbuild
This commit is contained in:
parent
5357a1a0c3
commit
5b2defd1fe
44
testing/piknik/APKBUILD
Normal file
44
testing/piknik/APKBUILD
Normal file
@ -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"
|
Loading…
Reference in New Issue
Block a user