blob: a63370c4d1b1feeef6b4cb035a8e160bcc9bc41a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
# Maintainer: Cole Leavitt <coleleavitt@protonmail.com>
pkgname=sf
pkgver=2.85.7
pkgrel=1
pkgdesc="A tool for creating and managing Salesforce DX projects from the command line"
arch=('x86_64')
url="https://developer.salesforce.com/tools/salesforcecli"
license=('BSD')
depends=('nodejs')
optdepends=('gnome-keyring: for saving default credentials')
provides=('sf')
options=('!strip')
source=("${pkgname}-${pkgver}.tar.xz::https://developer.salesforce.com/media/salesforce-cli/sf/channels/stable/sf-linux-x64.tar.xz")
sha256sums=('e447aed0ca853995fd23cef53a8e2e145bc09e0333e58704fa8319c20045986b')
changelog=CHANGELOG
prepare() {
cd "${srcdir}/sf"
# Add any necessary preparation steps here
}
check() {
cd "${srcdir}/sf"
# Add any test commands here
}
package() {
install_dir="/opt/${pkgname}"
# Create the installation directory
install -dm755 "${pkgdir}${install_dir}"
# Copy all files from the extracted directory to the installation directory
cp -a "${srcdir}/sf/"* "${pkgdir}${install_dir}"
# Set executable permissions for the sf binary
chmod +x "${pkgdir}${install_dir}/bin/sf"
# Create a symlink in /usr/bin
install -dm755 "${pkgdir}/usr/bin"
ln -s "${install_dir}/bin/sf" "${pkgdir}/usr/bin/sf"
# Install license file
install -Dm644 "${srcdir}/sf/LICENSE.txt" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
post_install() {
echo "To check for Salesforce CLI updates, run:"
echo " sf update"
}
|