summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexei Colin2017-06-21 21:36:51 -0400
committerAlexei Colin2017-06-21 21:36:51 -0400
commit8c3a34b7782c70c17190fb92ef110e22e3d165f5 (patch)
tree902523aa4f9c7cf7bc7e58e1c2de20ad8da77d4a
downloadaur-8c3a34b7782c70c17190fb92ef110e22e3d165f5.tar.gz
ccs: package draft
-rw-r--r--.SRCINFO25
-rw-r--r--.gitignore5
-rw-r--r--LICENSE34
-rw-r--r--PKGBUILD81
-rw-r--r--ccstudio.install14
5 files changed, 159 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 000000000000..f22f5224acf6
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,25 @@
+# Generated by mksrcinfo v8
+# Wed Jun 21 05:08:57 UTC 2017
+pkgbase = ccstudio
+ pkgdesc = Texas Instruments Code Composer Studio IDE
+ pkgver = 7.2.0.00013
+ pkgrel = 1
+ url = http://www.ti.com/tool/ccstudio
+ arch = x86_64
+ license = custom:TSPA
+ makedepends = glibc<2.25
+ makedepends = lib32-glibc<2.25
+ makedepends = lib32-gcc-libs
+ options = !strip
+ options = libtool
+ options = staticlibs
+ options = emptydirs
+ options = !purge
+ options = !zipman
+ source = http://software-dl.ti.com/ccs/esd/CCSv7/CCS_7_2_0/exports/CCS7.2.0.00013_linux-x64.tar.gz
+ source = LICENSE
+ md5sums = 7c89745cd4f7067f9ba7b8851b4db0cf
+ md5sums = cf7222e486f8f1d2a0f99d3d946e1f01
+
+pkgname = ccstudio
+
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 000000000000..93ed18a09e6f
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,5 @@
+*.swp
+*.swo
+src/
+pkg/
+*.tar.xz
diff --git a/LICENSE b/LICENSE
new file mode 100644
index 000000000000..698ad4d20655
--- /dev/null
+++ b/LICENSE
@@ -0,0 +1,34 @@
+TECHNOLOGY SOFTWARE PUBLICLY AVAILABLE
+
+
+Copyright (c) 2016 Texas Instruments Incorporated
+
+All rights reserved not granted herein.
+
+Limited License Agreement.
+
+This Limited License Agreement ("Agreement") is a legal agreement between you (either an individual or entity) and Texas Instruments Incorporated ("TI"). The "Software" consists of the following materials: (a) the materials identified as TI proprietary software programs in the software manifest for the software subject to the terms herein, and any "on-line" or electronic documentation associated with these programs, or any portion thereof (the "Licensed Materials"), and (b) the materials identified as open source materials or third party proprietary software in the software manifest for the Software, or any portion thereof ("Public Software"). For clarification, your use of the Licensed Materials is subject to the licensing terms contained in this Agreement and your use of the Public Software is subject to the separate licensing terms specified in the applicable software manifest and/or identified or included with the materials to which they apply. This Agreement does not limit your rights under, or grant you rights that supersede, the license terms of any applicable Public Software license agreement. By installing, copying or otherwise using the Licensed Materials you agree to abide by the terms of this Agreement. If you choose not to accept or agree with these terms, do not download or install the Licensed Materials.
+
+TI hereby grants you a world-wide, royalty-free, non-exclusive license under copyrights and patents it now or hereafter owns or controls to make, have made, use, import, offer to sell and sell ("Utilize") the Licensed Materials. With respect to the foregoing patent license, such license is granted solely to the extent that any such patent is necessary to Utilize the Licensed Materials alone. The patent license shall not apply to any combinations which include the Licensed Materials, other than combinations with devices manufactured by or for TI ("TI Devices"). No hardware patent is licensed hereunder.
+
+Redistributions must preserve existing copyright notices and reproduce this Limited License (including the above copyright notice and the disclaimer and (if applicable) source code license limitations below) in the documentation and/or other materials provided with the distribution.
+
+Redistribution and use in binary form, without modification, are permitted provided that the following conditions are met:
+
+* No reverse engineering, decompilation, or disassembly of this software is permitted with respect to any software provided in binary form.
+
+* any redistribution and use are licensed by TI for use only with TI Devices.
+
+* Nothing shall obligate TI to provide you with source code for the software licensed and provided to you in object code.
+
+If software source code is provided to you, modification and redistribution of the source code are permitted provided that the following conditions are met:
+
+* any redistribution and use of the source code, including any resulting derivative works, are licensed by TI for use only with TI Devices.
+
+* any redistribution and use of any object code compiled from the source code and any resulting derivative works, are licensed by TI for use only with TI Devices.
+
+Neither the name of Texas Instruments Incorporated nor the names of its suppliers may be used to endorse or promote products derived from this software without specific prior written permission.
+
+DISCLAIMER.
+
+THIS SOFTWARE IS PROVIDED BY TI AND TI'S LICENSORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL TI AND TI'S LICENSORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 000000000000..95f650435a43
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,81 @@
+# Maintainer: Alexei Colin <ac at alexeicolin dot com>
+
+pkgname=ccstudio
+pkgver=7.2.0.00013
+pkgrel=1
+pkgdesc="Texas Instruments Code Composer Studio IDE"
+arch=('x86_64')
+url="http://www.ti.com/tool/ccstudio"
+license=('custom:TSPA')
+
+# BitRock InstallBuilder installer breaks with glibc 2.25 (hangs on exit):
+# https://e2e.ti.com/support/development_tools/code_composer_studio/f/81/t/583306
+# https://e2e.ti.com/support/development_tools/code_composer_studio/f/81/t/594586
+#
+# To build in chroot with glibc 2.24 (2016/10/31), follow [[DeveloperWiki:Building in a Clean Chroot]]:
+# Create pacman.conf.20161031 with:
+# [core]
+# SigLevel = PackageRequired
+# Server=https://archive.archlinux.org/repos/2016/10/31/$repo/os/$arch
+# # same for [extra], [community], [multilib]
+#
+# pacman -S devtools
+# mkdir ~/chroot
+# CHROOT=$HOME/chroot
+# mkarchroot -C pacman.conf.20161031 $CHROOT/root base-devel lib32-glibc lib32-gcc-libs
+# makechrootpkg -c -r $CHROOT
+#
+# deps: lib32* are needed because one of the installers is 32-bit
+makedepends=('glibc<2.25' 'lib32-glibc<2.25' 'lib32-gcc-libs')
+
+# Needed for builtin jxBrowser plugin (otherwise exception exit code 127)
+depends=('gconf')
+
+# The license file was copy-pasted from the installer's GUI
+_archive=CCS${pkgver}_linux-x64
+source=('http://software-dl.ti.com/ccs/esd/CCSv7/CCS_7_2_0/exports/${_archive}.tar.gz'
+ 'LICENSE')
+
+md5sums=('7c89745cd4f7067f9ba7b8851b4db0cf'
+ 'cf7222e486f8f1d2a0f99d3d946e1f01')
+
+options=(!strip libtool staticlibs emptydirs !purge !zipman)
+
+_desktop="Code Composer Studio 7.2.0.desktop"
+
+_destdir=opt
+_installdir=installdir
+_installpath=$_installdir/$_destdir/$pkgname
+
+build() {
+ cd $srcdir/${_archive}
+
+ echo ">>> Executing installer. You can monitor progress with:"
+ echo ">>> tail -f ${srcdir}/${_installpath}/ccsv7/install_logs/*/ccs_setup_${pkgver}_install.log"
+
+ # Can't run this in package, because running as fakeroot breaks it:
+ # CCS_INFO: error message: dlsym(acl_get_fd): /usr/lib32/libfakeroot/libfakeroot.so: undefined symbol: acl_get_fd
+ # NOTE: ti_cgt_c2000_16.9.3.LTS_linux_installer_x86.bin is executed under fakeroot, this error is simply printed,
+ # but is not fatal. But, when the whole CCS installer is run under fakeroot is
+ ./ccs_setup_linux64_${pkgver}.bin --mode unattended --apps-select-all true --prefix $srcdir/$_installpath
+
+ # Move .desktop out of the dir about to be copied (avoiding rm), and fix path
+ mv "$srcdir/$_installpath/$_desktop" $srcdir/$pkgname.desktop
+}
+
+package() {
+ sed -i "s#$srcdir/$_installdir##" $srcdir/$pkgname.desktop
+ install -D -m0755 $srcdir/$pkgname.desktop $pkgdir/usr/share/applications/$pkgname.desktop
+
+ # Hardlink to avoid time and space overhead
+ cp -ral $srcdir/$_installdir/$_destdir $pkgdir/
+
+ #find $pkgdir -type f -exec chmod g+rw {} \;
+ #find $pkgdir -type d -exec chmod g+x {} \;
+
+ # Extract path to executable from .desktop
+ mkdir -p $pkgdir/usr/bin
+ ln -s $(grep 'Exec=' $srcdir/$pkgname.desktop | cut -d'=' -f2) $pkgdir/usr/bin/$pkgname
+
+ install -D -m0644 $srcdir/LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE
+}
diff --git a/ccstudio.install b/ccstudio.install
new file mode 100644
index 000000000000..05a84810c9c8
--- /dev/null
+++ b/ccstudio.install
@@ -0,0 +1,14 @@
+_dir=/opt/ccstudio/ccsv7
+
+post_install() {
+ echo ">>> To install software from within CCS, run ccstudio as root."
+ echo ">>> For normal usage, run as normal user."
+}
+
+post_remove() {
+ # Since CCS manages its own updates, and treats it's install directory
+ # as its working directory, there's cache and trash left over
+ # NOTE: other directories (${_dir}/tools) might have also been created, but
+ # some are owned by other packages (e.g. compiler), so be conservative.
+ rm -rf ${_dir}/eclipse
+}