# Maintainer: Alexei Colin pkgname=ti-cgt-msp430 pkgver=21.6.1.LTS pkgrel=1 pkgdesc="Texas Instruments Code Generation Tools (compiler) for MSP430" arch=('x86_64') url="https://www.ti.com/tool/MSP-CGT" license=('custom') #optdepends=('ccstudio') conflicts=('ccstudio') # current package ships with toolchains _installer="ti_cgt_msp430_${pkgver}_linux-x64_installer.bin" source=("https://dr-download.ti.com/software-development/ide-configuration-compiler-or-debugger/MD-p4jWEYpR8n/${pkgver}/${_installer}") md5sums=("b960da86bfe4d022c1b1c29968223904") options=(!strip libtool staticlibs emptydirs !purge !zipman) _ccsdir=opt/ccstudio _installdir=ccs/tools/compiler prepare() { cd $srcdir chmod +x ./${_installer} } package() { echo ">>> Running installer..." ./${_installer} --mode unattended --prefix $pkgdir/${_ccsdir}/${_installdir} # Match permissions to ccstudio package (see notes in ccstudio.install) find $pkgdir/${_ccsdir} -type d -exec chmod 0775 {} \; install -D -m0644 $pkgdir/${_ccsdir}/${_installdir}/${pkgname}_${pkgver}/MSP430_RTS_${pkgver}_manifest.html $pkgdir/usr/share/licenses/$pkgname/LICENSE.html }