blob: de166772031c3d8440d9aaf2a9d8aecd710bb797 (
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
53
|
# Maintainer: Alexei Colin <ac at alexeicolin dot com>
pkgname=ti-cgt-msp430
pkgver=18.1.3.LTS
pkgrel=1
pkgdesc="Texas Instruments Code Generation Tools (compiler) for MSP430"
arch=('x86_64')
url="http://software-dl.ti.com/codegen/non-esd/downloads/index.htm#MSP430"
#url="http://www.ti.com/tools-software/compilers/download.html"
license=('custom')
optdepends=('ccstudio')
_installer=ti_cgt_msp430_${pkgver}_linux_installer_x86.bin
source=("http://downloads.ti.com/codegen/esd/cgt_public_sw/MSP430/${pkgver}/${_installer}")
options=(!strip libtool staticlibs emptydirs !purge !zipman)
_ccsver=8
_ccsdir=ccstudio
_destdir=opt
_installdir=installdir
_installloc=$_ccsdir/ccsv$_ccsver/tools/compiler
_installpath=$_installdir/$_destdir/$_installloc
_tooldir=${pkgname}_${pkgver}
prepare() {
cd $srcdir
chmod +x ./${_installer}
}
build() {
cd $srcdir
# Calling from build to avoid fakeroot, assuming the same problem exists as
# for ccstudio installer (see ccstudio/PKGBUILD for details)
./${_installer} --mode unattended --prefix $srcdir/$_installpath
}
package() {
# Hardlink to avoid time and space overhead
cp -ral $srcdir/$_installdir/$_destdir $pkgdir/
# Match permissions to ccstudio package (see notes in ccstudio.install)
find $pkgdir/$_destdir/$_ccsdir -type d -exec chmod 0775 {} \;
# Version in filename is out of date upstream
install -D -m0644 $srcdir/${_installpath}/${pkgname}_${pkgver}/MSP430_RTS_18.1.0.LTS.html $pkgdir/usr/share/licenses/$pkgname/LICENSE.html
}
sha256sums=('1ba8c8e9f54d9b5f8e0cde472309cb5c3a249a93aac7e36936bae19d1a9a85ce')
|