blob: 3f429a31ba3d3f26292b2e46116d5d0f463c678e (
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
|
# Maintainer: Maxime BORGES <maxime.borges@gmail.com>
pkgname=simplicitystudio3
pkgver=3.3
pkgrel=3
pkgdesc='Design tools, documentation, software and support resources for EFM32™, EFM8™, 8051, Wireless MCUs and Wireless SoCs.'
arch=(i686 x86_64)
url='https://www.silabs.com/products/development-tools/software/simplicity-studio-version3'
license=('unknown')
# should probably put something here but most dependencies are included
depends_i686=(gtk2 libxtst)
depends_x86_64=(lib32-gtk2 lib32-libxtst)
options=('!strip')
source=(https://www.silabs.com/Support%20Documents/Software/SimplicityStudio.tgz
simplicitystudio3
simplicitystudio3.desktop)
sha256sums=('06d675b4d498cc939aaffcdae5abbb9ae7dc3bb1238117bc467b2db8f21de51b'
'ce8ba5d1b75f19da2f5f27b18c811fa7348cfda12684575175770c1aeb5507c6'
'f3e830dfa87d6b03cc335a3b43e155f02e9c13c24e967cc285a3cb8a654a7d0c')
#prepare() {
# # create desktop file and run script
# gendesk -f -n --pkgname ${pkgname} --pkgdesc "${pkgdesc}" --exec="${pkgname}" --name='Simplicity Studio 3'
#}
package() {
install -dm755 "$pkgdir/opt/"
install -dm755 "$pkgdir/usr/share/applications/"
install -dm755 "$pkgdir/etc/udev/rules.d"
cp -a $srcdir/SimplicityStudio_v3/common/tcf/plugins/*.rules "$pkgdir/etc/udev/rules.d/"
cp -a "$srcdir/SimplicityStudio_v3" "$pkgdir/opt/$pkgname"
# installation directory has to be writable
find "$pkgdir/opt/$pkgname" -type d -exec chmod a+w {} +
find "$pkgdir/opt/$pkgname" -type f -exec chmod a+w {} +
install -Dm755 "$srcdir/simplicitystudio3" "$pkgdir/usr/bin/$pkgname"
sed -i "s/^pkgname=.*/pkgname=$pkgname/" "$pkgdir/usr/bin/$pkgname"
# install .desktop file and icon
install -Dm644 "${pkgname}.desktop" "${pkgdir}/usr/share/applications/${pkgname}.desktop"
install -Dm644 "$srcdir/SimplicityStudio_v3/icon.xpm" "$pkgdir/usr/share/pixmaps/$pkgname.xpm"
}
|