mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-01-19 07:31:35 +01:00
42 lines
1.3 KiB
Plaintext
42 lines
1.3 KiB
Plaintext
# Maintainer: Andy McLeod <andy@amcleod.ca>
|
|
pkgname=ejson
|
|
pkgver=1.0.2
|
|
pkgrel=1
|
|
pkgdesc="EJSON is a small library to manage encrypted secrets using asymmetric encryption."
|
|
url="https://github.com/Shopify/ejson"
|
|
arch="all"
|
|
license="MIT"
|
|
depends=""
|
|
depends_dev=""
|
|
makedepends="$depends_dev go"
|
|
subpackages=""
|
|
source="$pkgname-$pkgver.tar.gz::https://github.com/Shopify/$pkgname/archive/$pkgver.tar.gz
|
|
10-patch1.patch
|
|
"
|
|
|
|
_gourl=github.com/Shopify/ejson
|
|
builddir="$srcdir"/src/$_gourl
|
|
|
|
prepare() {
|
|
mkdir -p "${builddir%/*}"
|
|
mv "$srcdir"/$pkgname-$pkgver "$builddir" || return 1
|
|
mv $builddir/Godeps/_workspace/src/github.com/* $srcdir/src/github.com
|
|
mv $builddir/Godeps/_workspace/src/golang.org $srcdir/src
|
|
|
|
default_prepare
|
|
}
|
|
|
|
build() {
|
|
cd "$builddir" || return 1
|
|
export GOPATH="$srcdir"
|
|
CGO_ENABLED=0 go build -v -o e${pkgname} github.com/Shopify/ejson/cmd/ejson || return 1
|
|
}
|
|
|
|
package() {
|
|
cd "$builddir"
|
|
install -Dm755 e${pkgname} \
|
|
"$pkgdir"/usr/bin/ejson || return 1
|
|
}
|
|
sha512sums="90d814abfc91d10974b1673538c2120a854737dd82b692074a22fdeeb0d4334bf94d4619484ed4f399ce89ba508de9a683415aa73987632896e64bd920e13588 ejson-1.0.2.tar.gz
|
|
53aab34fceb0b546b7eb5296b668da592bf7c44d76e95aa10962a8dfd649f0090b8097d31f09055598e5c0f281a5dd90a87efe13c46f306921b2fa7fca01e4a1 10-patch1.patch"
|