# Contributor: Leo # Contributor: Kevin Daudt # Maintainer: Kevin Daudt pkgname=direnv pkgver=2.32.3 pkgrel=2 pkgdesc="Environment variable switcher for the shell" url="https://direnv.net" license="MIT" arch="all" depends="bash" makedepends="go" subpackages="$pkgname-doc $pkgname-fish::noarch" source="$pkgname-$pkgver.tar.gz::https://github.com/direnv/direnv/archive/v$pkgver.tar.gz" export GOFLAGS="$GOFLAGS -modcacherw" export GOCACHE="${GOCACHE:-"$srcdir/go-cache"}" export GOTMPDIR="${GOTMPDIR:-"$srcdir"}" export GOMODCACHE="${GOMODCACHE:-"$srcdir/go"}" build() { make } check() { # Also has tests for tcsh and elvish, this manual call is done instead of # tests to avoid unwanted tests like 'shellcheck' and 'go-fmt' make test-go test-bash } package() { make DESTDIR="$pkgdir" PREFIX=/usr install } fish() { pkgdesc="configuration hooks for fish" install_if="$pkgname=$pkgver-r$pkgrel fish" amove usr/share/fish/vendor_conf.d } sha512sums=" 6378ec8b2b37772f4b30f910ba27e90c73ae05b4ca29e09b7d1964d2ccba8d451433a9c16c66b8849f5e41577ad3920752e9b804ed6de9db1c231c7983110519 direnv-2.32.3.tar.gz "