mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-30 10:51:39 +02:00
31 lines
901 B
Plaintext
31 lines
901 B
Plaintext
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
|
|
pkgname=docker-volume-local-persist
|
|
pkgver=1.3.0
|
|
pkgrel=0
|
|
pkgdesc="Local Persist Volume Plugin for Docker"
|
|
url="https://github.com/CWSpear/local-persist"
|
|
arch="all"
|
|
license="MIT"
|
|
depends="docker"
|
|
makedepends="go glide"
|
|
install=""
|
|
subpackages=""
|
|
source="docker-local-persist-$pkgver.tar.gz::https://github.com/CWSpear/local-persist/archive/v$pkgver.tar.gz"
|
|
builddir="$srcdir/local-persist-$pkgver"
|
|
|
|
build() {
|
|
cd "$builddir"
|
|
export GOPATH="$startdir"
|
|
glide install --skip-test
|
|
go build -v -ldflags "-s -w" \
|
|
-o bin/local-persist
|
|
}
|
|
|
|
package() {
|
|
cd "$builddir"
|
|
install -Dm755 bin/local-persist \
|
|
"$pkgdir"/usr/bin/docker-volume-local-persist
|
|
}
|
|
|
|
sha512sums="43a061c937c84eaab817dc62e4be5adfee960e357a2eea504e87c8e5fda32f5a835dc6d145f7d787f4907cd592a04c0159455d8d28d40e158f5a93c4e4fc060a docker-local-persist-1.3.0.tar.gz"
|