aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJakub Jirutka <jakub@jirutka.cz>2018-03-02 18:40:45 +0100
committerJakub Jirutka <jakub@jirutka.cz>2018-03-02 18:42:13 +0100
commit5b0fcfe6e6bff9f0157aa0efcf25a25c3237cb57 (patch)
treec64a3e613e482aa6efb7e179ebe90135a6a9e5d6
parent0f20f3910b4dd65b090b99f4372bd5274ac7d86f (diff)
downloadaports-5b0fcfe6e6bff9f0157aa0efcf25a25c3237cb57.tar.gz
aports-5b0fcfe6e6bff9f0157aa0efcf25a25c3237cb57.tar.bz2
aports-5b0fcfe6e6bff9f0157aa0efcf25a25c3237cb57.tar.xz
testing/direnv: new aport
http://direnv.net Environment variable switcher for the shell
-rw-r--r--testing/direnv/APKBUILD37
1 files changed, 37 insertions, 0 deletions
diff --git a/testing/direnv/APKBUILD b/testing/direnv/APKBUILD
new file mode 100644
index 0000000000..28396f4522
--- /dev/null
+++ b/testing/direnv/APKBUILD
@@ -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"