diff options
author | David Parrish | 2019-01-30 10:06:24 -0500 |
---|---|---|
committer | David Parrish | 2019-01-30 10:06:24 -0500 |
commit | 28f6a30e4b15b8e22ed0245525fa513a2162a3ff (patch) | |
tree | bb5ecde0b88da4ba8f248e3d91b10ee68d3aab93 /PKGBUILD | |
download | aur-28f6a30e4b15b8e22ed0245525fa513a2162a3ff.tar.gz |
Initial commit for Lando PKGBUILD
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..88a6379c61b8 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,37 @@ +# Maintainer: David Parrish <daveparrish@tutanota.com> +# Thank you inversechi and eschwartz +# https://bbs.archlinux.org/viewtopic.php?id=235884 + +pkgname=lando +pkgver=3.0.0_rc.1 +_target_version=${pkgver//_/-} +pkgrel=1 +pkgdesc="A free, open source, cross-platform, local development environment and DevOps tool built on Docker container technology" +arch=('x86_64') +url="https://docs.devwithlando.io" +license=('GPL') +depends=('docker' 'docker-compose') +optdepends=('gcc-libs') +makedepends=('npm' 'yarn' 'git') +source=("${pkgname}::git+https://github.com/lando/lando.git#tag=v${_target_version}") +sha256sums=('SKIP') +conflicts=("lando-git") +provides=("lando") + +# strip breaks executable +options=(!strip) + +build() { + cd "${srcdir}/$pkgname" || exit + + # https://github.com/lando/lando/issues/1309 + npm install fs-extra@0.18.4 + npm install + + yarn pkg:cli +} + +package() { + cd "${srcdir}/$pkgname" || exit + install -D -m 755 "dist/cli/lando-linux-x64-v${_target_version}" "${pkgdir}/usr/bin/lando" +} |