# Maintainer: Dang Mai pkgname=sfdx-cli pkgver="6.49.0_8edc6e0f5d" 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.49.0-8edc6e0f5d-linux-x86.tar.xz") source_x86_64=("https://developer.salesforce.com/media/salesforce-cli/sfdx-cli/channels/stable/sfdx-cli-v6.49.0-8edc6e0f5d-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.49.0-8edc6e0f5d"-linux-${_arch}" cp -a "${sfdx_dir}" "${pkgdir}"/opt/sfdx-cli ln -s /opt/sfdx-cli/bin/sfdx "${pkgdir}"/usr/bin/sfdx } sha256sums_i686=("2f37b8d06cb192aeb8d4006bf085bf2bd1c15e4f57bffb9ef5038342bad453f1") sha256sums_x86_64=("57af4589b39485d1b42dfd7587a18234605af7f103130af8343b884f81dcc415")