# Maintainer: Dang Mai pkgname=sfdx-cli pkgver="6.37.0_2d5d7e1522" pkgrel=1 _dirname="${pkgname}-v${pkgver}" pkgdesc="a tool for creating and managing Salesforce DX projects from the command line" arch=('i686' 'x86_64') url="https://developer.salesforce.com/tools/sfdxcli" license=('unknown') optdepends=('gnome-keyring: saving default credentials') provides=('sfdx-cli') options=(!strip) conflicts=() source_i686=("https://developer.salesforce.com/media/salesforce-cli/sfdx-cli/channels/stable/sfdx-cli-v6.37.0-2d5d7e1522-linux-x86.tar.xz") source_x86_64=("https://developer.salesforce.com/media/salesforce-cli/sfdx-cli/channels/stable/sfdx-cli-v6.37.0-2d5d7e1522-linux-x64.tar.xz") package() { _arch="" case $CARCH in "x86_64") _arch="x64" ;; "i686") _arch="x86" ;; esac cd "${srcdir}" install -dm 755 "${pkgdir}"/opt install -dm 755 "${pkgdir}"/usr/bin sfdx_dir="sfdx-cli-v"6.37.0-2d5d7e1522"-linux-${_arch}" cp -a "${sfdx_dir}" "${pkgdir}"/opt/sfdx-cli ln -s /opt/sfdx-cli/bin/sfdx "${pkgdir}"/usr/bin/sfdx } sha256sums_i686=("ee4586654f42b1055a1e5ea734d6dbf78f451d5fdb1f4d89fed88a212f053179") sha256sums_x86_64=("aa0b80a35e961817c32e39ff4532069c546787990a4bfdfaf3c056583b01c71c")