Package Details: tfenv 1.0.2-6

Git Clone URL: (read-only, click to copy)
Package Base: tfenv
Description: Terraform version manager inspired by rbenv
Upstream URL:
Keywords: terraform
Licenses: MIT
Conflicts: terraform
Provides: terraform, tfenv
Submitter: zephrax
Maintainer: T4cC0re
Last Packager: T4cC0re
Votes: 3
Popularity: 0.076200
First Submitted: 2018-02-26 14:36
Last Updated: 2019-12-14 00:50

Dependencies (1)

Required by (7)

Sources (1)

Latest Comments

1 2 Next › Last »

T4cC0re commented on 2019-12-07 13:32

@knotsies: You got it :) Just pushed 1.0.2-4

FYI in general: I know there is a tfenv 2.x, but that is not a stable release yet. I will not update this package with a non-stable release.

knotsies commented on 2019-12-07 13:26

Hello! Thanks for adding this package to the AUR!

tfenv appears to use unzip when installing a new version:

/usr/local/lib/tfenv/libexec/tfenv-install: line 177: unzip: command not found
tfenv: tfenv-install: [ERROR] Tarball unzip failed

Can unzip be added as a dependency of this package?

T4cC0re commented on 2019-09-11 14:23

Sorry it took so long. Applied the suggestion by WhiteAnthrax. @WhiteAnthrax if you are interested I would like to make you a co-maintainer. You seem to be more active than me :)

WhiteAnthrax commented on 2019-09-02 06:46

Oh.. sorry % diff -u PKGBUILD.orig PKGBUILD

--- PKGBUILD.orig   2019-09-02 14:42:42.000000000 +0900
+++ PKGBUILD    2019-09-02 15:46:12.305817135 +0900
@@ -2,7 +2,7 @@
 # Maintainer: Hendrik "T4cC0re" Meyer <>
 pkgdesc="Terraform version manager inspired by rbenv"
@@ -20,14 +20,16 @@
 package() {
    cd "${srcdir}/${pkgname}-${pkgver}"
    mkdir -p "${pkgdir}/usr/local/bin"
-   mkdir -p "${pkgdir}/usr/local/libexec"
+   mkdir -p "${pkgdir}/usr/local/lib/tfenv/libexec"
    echo $srcdir
    ls -lah
+  sed -i 's:TFENV_ROOT="$(cd "$(dirname "$(readlink_f "${0}")")/.." \&\& pwd)":TFENV_ROOT="$(cd "$(dirname "$(readlink_f "${0}")")/../lib/tfenv" \&\& pwd)":' bin/tfenv
    install -m755 "bin/${pkgname}" "${pkgdir}/usr/local/bin/${pkgname}"
    install -m755 "bin/terraform" "${pkgdir}/usr/local/bin/terraform"
-   for i in `ls ${srcdir}/${pkgname}/libexec/`; do
-       install -m755 "${srcdir}/${pkgname}/libexec/$i" "${pkgdir}/usr/local/libexec/$i"
+   for i in `ls ${srcdir}/${pkgname}-${pkgver}/libexec/`; do
+       install -m755 "${srcdir}/${pkgname}-${pkgver}/libexec/$i" "${pkgdir}/usr/local/lib/tfenv/libexec/$i"
    chmod +x ${pkgdir}/usr/local/bin/${pkgname}
+  install -m644 "${srcdir}/${pkgname}-${pkgver}/" "${pkgdir}/usr/local/lib/tfenv/"

shihanng commented on 2019-08-29 13:47

We should remove the ${srcdir}/${pkgname}/ from the for-loop?

    for i in `ls ${srcdir}/${pkgname}/libexec/`; do
        install -m755 "${srcdir}/${pkgname}/libexec/$i" "${pkgdir}/usr/local/libexec/$i"

Also, it seems very likely that 1.0.1 broke the installation via tfenv as now it expects to find but this PKGBUILD does not copy/install that file.

There is also issue about where to install because /usr/local/ (which I think the upstream expects it to be at) might not be a good idea.

Solution could be we install the whole repository and symlink tfenv/bin/* to /usr/local/bin/` but I am not sure if that is a good practice for AUR.

T4cC0re commented on 2019-08-26 09:46

@WhiteAnthrax applied your suggestion

WhiteAnthrax commented on 2019-08-21 04:41

--- /tmp/tfenv/PKGBUILD 2019-08-09 08:14:48.000000000 +0900
+++ tfenv/PKGBUILD  2019-08-21 13:40:19.873113328 +0900
@@ -18,7 +18,7 @@

 package() {
-   cd "${srcdir}/${pkgname}"
+   cd "${srcdir}/${pkgname}-${pkgver}"
    mkdir -p "${pkgdir}/usr/local/bin"
    mkdir -p "${pkgdir}/usr/local/libexec"
    echo $srcdir

T4cC0re commented on 2019-08-08 23:15

I just adopted the package and applied the suggested fixes :)

shihanng commented on 2019-04-11 13:36

Hi zephrax, based on comments by hsa and nesth, I've created a patch as an attempt to improve this package. Would you be interested in merging this?

hsa commented on 2018-10-28 21:10

Upstream URL and sources have changed: