initial commit

This commit is contained in:
Andras Biro 2020-08-23 18:01:49 +02:00
commit 22a3cd9a71
4 changed files with 84 additions and 0 deletions

22
.SRCINFO Normal file
View File

@ -0,0 +1,22 @@
pkgbase = simplicitystudio5-bin
pkgdesc = Design tools, documentation, software and support resources for EFM32™, EFM8™, 8051, Wireless MCUs and Wireless SoCs.
pkgver = 5
pkgrel = 1
url = https://www.silabs.com/products/development-tools/software/simplicity-studio
install = simplicitystudio5.install
arch = x86_64
license = unknown
depends = qt5-base
depends = libxtst
optdepends = wine: for IAR support
optdepends = lib32-qt4: for old tools like battery estimator
optdepends = qt4: for Segger tools like systemview
options = !strip
backup = opt//studio.ini
source = https://www.silabs.com/documents/login/software/SimplicityStudio-5.tgz
source = simplicitystudio5.desktop
sha256sums = SKIP
sha256sums = d0c7b8d6f8b9bcb8d900dfdb047d5a833aae2d131bc4c675e67aec7e3ac3f0e7
pkgname = simplicitystudio5-bin

47
PKGBUILD Normal file
View File

@ -0,0 +1,47 @@
# Maintainer: Andras Biro <bbandi86@gmail.com>
# Contributor: Håvard Pettersson <mail@haavard.me> for studio4
pkgname=simplicitystudio5-bin
pkgver=5
pkgrel=1
pkgdesc='Design tools, documentation, software and support resources for EFM32™, EFM8™, 8051, Wireless MCUs and Wireless SoCs.'
arch=(x86_64)
url=https://www.silabs.com/products/development-tools/software/simplicity-studio
license=(unknown)
backup=("opt/$installdir/studio.ini")
depends=(qt5-base libxtst)
optdepends=('wine: for IAR support'
'lib32-qt4: for old tools like battery estimator'
'qt4: for Segger tools like systemview')
options=('!strip')
install=simplicitystudio5.install
source=(https://www.silabs.com/documents/login/software/SimplicityStudio-5.tgz
simplicitystudio5.desktop)
sha256sums=('SKIP'
'd0c7b8d6f8b9bcb8d900dfdb047d5a833aae2d131bc4c675e67aec7e3ac3f0e7')
installdir=simplicitystudio5
prepare() {
cd "$srcdir/SimplicityStudio_v5"
}
package() {
install -dm755 "$pkgdir/opt/"
cp -a "$srcdir/SimplicityStudio_v5" "$pkgdir/opt/$installdir"
install -dm755 "$pkgdir/etc/udev/rules.d/"
find "$srcdir/SimplicityStudio_v5/StudioLinux" -name '*.rules' \
-exec install -m644 {} "$pkgdir/etc/udev/rules.d/" \;
mkdir -p $pkgdir/usr/bin
ln -sf /opt/$installdir/studio $pkgdir/usr/bin/$installdir
install -Dm644 "simplicitystudio5.desktop" \
"$pkgdir/usr/share/applications/simplicitystudio5.desktop"
# installation directory has to be writable
find "$pkgdir/opt/$installdir" -type d -exec chmod a+w {} +
find "$pkgdir/opt/$installdir" -type f -exec chmod a+w {} +
}
# vim:set ts=2 sw=2 et:

View File

@ -0,0 +1,9 @@
[Desktop Entry]
Version=5
Type=Application
Terminal=false
Exec=/usr/bin/simplicitystudio5
Name=Simplicity Studio
Path=/opt/simplicitystudio5
Icon=/opt/simplicitystudio5/icon.xpm
Categories=Development

View File

@ -0,0 +1,6 @@
## arg 1: the old package version
post_remove() {
rm -rf /opt/simplicitystudio5
}