testing/direnv: new aport

http://direnv.net
Environment variable switcher for the shell
This commit is contained in:
Jakub Jirutka 2018-03-02 18:40:45 +01:00
parent 0f20f3910b
commit 5b0fcfe6e6

37
testing/direnv/APKBUILD Normal file
View File

@ -0,0 +1,37 @@
# Maintainer:
pkgname=direnv
pkgver=2.15.2
pkgrel=0
pkgdesc="Environment variable switcher for the shell"
url="http://direnv.net"
arch="all"
license="MIT"
checkdepends="bash"
makedepends="go"
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/direnv/$pkgname/archive/v$pkgver.tar.gz"
builddir="$srcdir/src/github.com/direnv/$pkgname"
prepare() {
mkdir -p "${builddir%/*}"
ln -s "$srcdir"/$pkgname-$pkgver "$builddir"
default_prepare
}
build() {
cd "$builddir"
make GOPATH="$srcdir"
}
check() {
cd "$builddir"
make test GOPATH="$srcdir"
}
package() {
cd "$builddir"
make DESTDIR="$pkgdir/usr" install
}
sha512sums="f973ce55844fce97ad5a93832d53a8a0f4544080022f869c1a83dc3cf07ee86c1ea1a1cb31ddc20c4f5d205825e70405539bf866889c0aaafc7baf75b98d2fbe direnv-2.15.2.tar.gz"