pkgbuilds/slc-cli/PKGBUILD

27 lines
816 B
Bash
Raw Permalink Normal View History

2023-02-19 12:59:08 +02:00
# Maintainer: Rihards Skuja <rhssk at posteo dot eu>
pkgname=slc-cli
2024-03-09 12:23:17 +02:00
pkgver=5.8.1.0
2023-11-10 20:07:06 +02:00
pkgrel=1
2023-02-19 12:59:08 +02:00
pkgdesc='Command line tool to generate projects with Silicon Labs SDK'
arch=('x86_64')
url='https://siliconlabs.github.io/slc-specification'
license=('unknown')
options=('!strip')
depends=('java-runtime' 'python-requests' 'python-websockets' 'python-colorama')
source=("$pkgname-$pkgver.zip::https://www.silabs.com/documents/login/software/slc_cli_linux.zip")
noextract=("$pkgname-$pkgver.zip")
2024-03-09 12:23:17 +02:00
sha256sums=('204e8622b4eec206a8a405a88800f1623706db9d8c4bf72b7d98a5eb9cc16607')
2023-02-19 12:59:08 +02:00
prepare() {
bsdtar -xpf "$pkgname-$pkgver.zip"
}
package() {
cd "slc_cli"
install -d "$pkgdir"/{usr/bin,opt/$pkgname}
2024-01-03 21:03:01 +02:00
cp -a * "$pkgdir/opt/$pkgname/"
echo "sh /opt/$pkgname/slc \$@" > "$pkgdir/usr/bin/slc"
2023-02-19 12:59:08 +02:00
chmod +x "$pkgdir/usr/bin/slc"
}