summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeter Ivanov2015-06-23 09:57:12 +0200
committerPeter Ivanov2015-06-23 09:57:12 +0200
commitd722c68557652aaa83f97c6d2e159c72470b2e9b (patch)
treee7e143169280ba9c3a109c306afb42fb9cb67b77
downloadaur-d722c68557652aaa83f97c6d2e159c72470b2e9b.tar.gz
Initial import.
-rw-r--r--.SRCINFO42
-rw-r--r--LICENSE42
-rw-r--r--PKGBUILD94
-rwxr-xr-xmicrochip-mplabx-bin.install22
4 files changed, 200 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 000000000000..c219ed6b85e7
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,42 @@
+# Generated by makepkg 4.2.1
+# Fri Mar 13 06:19:48 UTC 2015
+pkgbase = microchip-mplabx-bin
+ pkgdesc = IDE for Microchip PIC and dsPIC development
+ pkgver = 2.35
+ pkgrel = 2
+ url = http://www.microchip.com/mplabx
+ install = microchip-mplabx-bin.install
+ arch = i686
+ arch = x86_64
+ license = custom
+ makedepends = fakechroot
+ depends = gtk2
+ depends = alsa-lib
+ depends = libxslt
+ depends = libxtst
+ depends = desktop-file-utils
+ depends = jdk7-openjdk
+ depends = lib32-glibc
+ depends = lib32-fakeroot
+ optdepends = microchip-mplabxc8-bin: C compiler for PIC10 PIC12 PIC16 PIC18 MCUs
+ optdepends = microchip-mplabxc16-bin: C compiler for PIC24 MCUs and dsPIC DSCs
+ optdepends = microchip-mplabxc32-bin: C Compiler for PIC32 MCUs
+ optdepends = microchip-mplabc18_bin: C compiler for PIC18 MCUs
+ optdepends = sdcc: C compiler for PIC16/18 MCUs
+ provides = mplab
+ conflicts = mplab
+ options = !strip
+ options = docs
+ options = libtool
+ options = emptydirs
+ options = !zipman
+ options = !upx
+ source = http://ww1.microchip.com/downloads/en/DeviceDoc/MPLABX-v2.35-linux-installer.tar
+ source = LICENSE
+ source = fakechroot-i686.pkg.tar.xz::http://www.archlinux.org/packages/extra/i686/fakechroot/download/
+ md5sums = 266158b5711eceb46a7ebbecb93d10b7
+ md5sums = a34a85b2600a26f1c558bcd14c2444bd
+ md5sums = 92b9a1dc8fa0534048790731a7bf2fc5
+
+pkgname = microchip-mplabx-bin
+
diff --git a/LICENSE b/LICENSE
new file mode 100644
index 000000000000..3db23ab19959
--- /dev/null
+++ b/LICENSE
@@ -0,0 +1,42 @@
+MICROCHIP IS WILLING TO LICENSE THE ACCOMPANYING SOFTWARE AND DOCUMENTATION TO YOU ONLY ON THE CONDITION THAT YOU ACCEPT ALL OF THE FOLLOWING TERMS. TO ACCEPT THE TERMS OF THIS LICENSE, CLICK "I ACCEPT" AND PROCEED WITH THE DOWNLOAD OR INSTALL. IF YOU DO NOT ACCEPT THESE LICENSE TERMS, CLICK "I DO NOT ACCEPT," AND DO NOT DOWNLOAD OR INSTALL THIS SOFTWARE.
+
+NON-EXCLUSIVE SOFTWARE LICENSE AGREEMENT FOR MPLAB(r) IDE SOFTWARE
+
+This Nonexclusive Software License Agreement ("Agreement") is a contract between you, your heirs, successors and assigns ("Licensee") and Microchip Technology Incorporated, a Delaware corporation, with a principal place of business at 2355 W. Chandler Blvd., Chandler, AZ 85224-6199, and its subsidiary, Microchip Technology (Barbados) II Incorporated (collectively, "Microchip") for the accompanying Microchip software including, but not limited to, MPLAB IDE software, and any updates thereto (collectively, the "Software"), and accompanying documentation, including images and any other graphic resources provided by Microchip ("Documentation").
+
+1. Definitions. As used in this Agreement, the following capitalized terms will have the meanings defined below:
+ a. "Microchip Products" means Microchip microcontrollers, Microchip digital signal controllers, or other Microchip products.
+ b. "Object Code" means the Software computer programming code that is in binary form (including related documentation, if any), and error corrections, improvements, modifications, and updates.
+ c. "Source Code" means the Software computer programming code that may be printed out or displayed in human readable form (including related programmer comments and documentation, if any), and error corrections, improvements, modifications, and updates.
+
+2. Software License Grant. Subject to Licensee's compliance with the terms of this Agreement, Microchip grants strictly to Licensee a non-exclusive, non-transferable, worldwide license to:
+ a. Use the Software solely for use with Microchip Products; and
+ b. If Source Code is provided, modify the Software, provided that no Open Source Components (defined in Section 4 below) are incorporated into such Software in such a way that would affect Microchip's right to distribute the Software with the limitations set forth herein.
+
+3. Documentation License Grant. Microchip grants strictly to Licensee a non-exclusive, non-transferable, worldwide license to use the Documentation in support of Licensee's authorized use of the Software.
+
+4. Open Source Components. Notwithstanding the license grant in Section 2 above, Licensee further acknowledges that certain components of the Software may be covered by so-called "open source" software licenses ("Open Source Components"). Open Source Components means any software licenses approved as open source licenses by the Open Source Initiative or any substantially similar licenses, including without limitation any license that, as a condition of distribution of the software licensed under such license, requires that the distributor make the software available in source code format. To the extent required by the licenses covering Open Source Components, the terms of such license will apply in lieu of the terms of this Agreement. To the extent the terms of the licenses applicable to Open Source Components prohibit any of the restrictions in this Agreement with respect to such Open Source Components, such restrictions will not apply to such Open Source Component.
+
+By way of example, Netbeans 6.9 distributed with the Software is licensed under the terms of the Common Development and Distribution License ("CDDL"). Licenses applicable to Netbeans can be found in the NETBEANSLICENSES.txt and THIRDPARTYLICENSE.txt files or at http://netbeans.org/about/legal/product-licences.html.
+
+5. Third Party Requirements. Licensee acknowledges that it is Licensee's responsibility to comply with any third party license terms or requirements applicable to the use of such third party software, specifications, systems, or tools. Microchip is not responsible and will not be held responsible in any manner for Licensee's failure to comply with such applicable terms or requirements.
+
+6. Licensee Obligations. Licensee will not: (a) engage in unauthorized use, modification, disclosure or distribution of Software or Documentation, or its derivatives; (b) use all or any portion of the Software, Documentation, or its derivatives except in conjunction with Microchip Products; or (c) reverse engineer (by disassembly, decompilation or otherwise) Software or any portion thereof. Licensee may not remove or alter any Microchip copyright or other proprietary rights notice posted in any portion of the Software or Documentation. Licensee will defend, indemnify and hold Microchip and its subsidiaries harmless from and against any and all claims, costs, damages, expenses (including reasonable attorney's fees), liabilities, and losses, including without limitation product liability claims, directly or indirectly arising from or related to the: (i) use, sale and distribution of Licensee products; and (ii) breach of this Agreement. THIS SECTION 6 STATES THE SOLE AND EXCLUSIVE LIABILITY OF THE PARTIES FOR INTELLECTUAL PROPERTY INFRINGEMENT.
+
+7. Confidentiality. Licensee agrees that the Software (including but not limited to the Source Code, Object Code and library files) and its derivatives, underlying inventions, algorithms, know-how and ideas relating to the Software, and the Documentation are proprietary information belonging to Microchip and its licensors ("Proprietary Information"). Except as expressly and unambiguously allowed herein, Licensee will hold in confidence and not use or disclose any Proprietary Information and will similarly bind its employees in writing. Proprietary Information will not include information that: (a) is in or enters the public domain without breach of this Agreement and through no fault of the receiving party; (b) the receiving party was legally in possession of prior to receiving it; (c) the receiving party can demonstrate was developed by the receiving party independently and without use of or reference to the disclosing party's Proprietary Information; or (d) the receiving party receives from a third party without restriction on disclosure. If Licensee is required to disclose Proprietary Information by law, court order, or government agency, License will give Microchip prompt notice of such requirement in order to allow Microchip to object or limit such disclosure. Licensee agrees that the provisions of this Agreement regarding unauthorized use and nondisclosure of the Software, Documentation and related Proprietary Rights are necessary to protect the legitimate business interests of Microchip and its licensors and that monetary damage alone cannot adequately compensate Microchip or its licensors if such provisions are violated. Licensee, therefore, agrees that if Microchip alleges that Licensee has breached or violated such provision then Microchip will have the right to injunctive relief, without the requirement for the posting of a bond, in addition to all other remedies at law or in equity.
+
+8. Benchmarking. This Agreement does not prevent Licensee from using the Software for internal benchmarking purposes. However, Licensee will treat any and all benchmarking data relating to the Software, and any of other results of use or testing of the Software that are indicative of its performance, efficacy, reliability or quality, as confidential information. Licensee will not disclose such information to any third party without the Company's express written permission. The foregoing restriction applies to benchmarking data that relates to the Software as a whole or any portion thereof and such restriction is a condition to exercising the licenses granted to Licensee (but will not be deemed a condition to the use of any Open Source Components, to the extent such restriction would be prohibited by the license applicable to such Open Source Components).
+
+9. Ownership of Proprietary Rights. Microchip and its licensors retain all right, title and interest in and to the Software and Documentation including, but not limited to all patent, copyright, trade secret and other intellectual property rights in the Software, Documentation, and underlying technology and all copies and derivative works thereof (by whomever produced). Licensee's use of such modifications and derivatives is limited to the license rights described in this Agreement, except as set forth in Section 4.
+
+10. Termination of Agreement. Without prejudice to any other rights, this Agreement terminates immediately, without notice by Microchip, upon a failure by Licensee to comply with any provision of this Agreement. Upon termination, Licensee will immediately stop using the Software, Documentation, and derivatives thereof, and immediately destroy all such copies.
+
+11. Warranty Disclaimers. THE SOFTWARE AND DOCUMENTATION ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION, ANY WARRANTY OF MERCHANTABILITY, TITLE, NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE. MICROCHIP AND ITS LICENSORS ASSUME NO RESPONSIBILITY FOR THE ACCURACY, RELIABILITY OR APPLICATION OF THE SOFTWARE OR DOCUMENTATION. MICROCHIP AND ITS LICENSORS DO NOT WARRANT THAT THE SOFTWARE WILL MEET REQUIREMENTS OF LICENSEE, BE UNINTERRUPTED OR ERROR-FREE. MICROCHIP AND ITS LICENSORS HAVE NO OBLIGATION TO CORRECT ANY DEFECTS IN THE SOFTWARE.
+
+12. Limited Liability. IN NO EVENT WILL MICROCHIP OR ITS LICENSORS BE LIABLE OR OBLIGATED UNDER ANY LEGAL OR EQUITABLE THEORY FOR ANY DIRECT OR INDIRECT DAMAGES OR EXPENSES INCLUDING BUT NOT LIMITED TO INCIDENTAL, SPECIAL, INDIRECT, PUNITIVE OR CONSEQUENTIAL DAMAGES, LOST PROFITS OR LOST DATA, COST OF PROCUREMENT OF SUBSTITUTE GOODS, TECHNOLOGY, SERVICES, OR ANY CLAIMS BY THIRD PARTIES (INCLUDING BUT NOT LIMITED TO ANY DEFENSE THEREOF), OR OTHER SIMILAR COSTS. The aggregate and cumulative liability of Microchip and its licensors for damages hereunder will in no event exceed $1000 or the amount Licensee paid Microchip for the Software and Documentation, whichever is greater. Licensee acknowledges that the foregoing limitations are reasonable and an essential part of this Agreement.
+
+13. General. THIS AGREEMENT WILL BE GOVERNED BY AND CONSTRUED UNDER THE LAWS OF THE STATE OF ARIZONA AND THE UNITED STATES WITHOUT REGARD TO CONFLICTS OF LAWS PROVISIONS. Licensee agrees that any disputes arising out of or related to this Agreement, Software or Documentation will be brought in the courts of the State of Arizona. This Agreement will constitute the entire agreement between the parties with respect to the subject matter hereof. It will not be modified except by a written agreement signed by an authorized representative of the Microchip. If any provision of this Agreement will be held by a court of competent jurisdiction to be illegal, invalid or unenforceable, that provision will be limited or eliminated to the minimum extent necessary so that this Agreement will otherwise remain in full force and effect and enforceable. No waiver of any breach of any provision of this Agreement will constitute a waiver of any prior, concurrent or subsequent breach of the same or any other provisions hereof, and no waiver will be effective unless made in writing and signed by an authorized representative of the waiving party. Licensee agrees to comply with all export laws and restrictions and regulations of the Department of Commerce or other United States or foreign agency or authority. The indemnities, obligations of confidentiality, and limitations on liability described herein, and any right of action for breach of this Agreement prior to termination, will survive any termination of this Agreement. Any prohibited assignment will be null and void. Use, duplication or disclosure by the United States Government is subject to restrictions set forth in subparagraphs (a) through (d) of the Commercial Computer-Restricted Rights clause of FAR 52.227-19 when applicable, or in subparagraph (c)(1)(ii) of the Rights in Technical Data and Computer Software clause at DFARS 252.227-7013, and in similar clauses in the NASA FAR Supplement. Contractor/manufacturer is Microchip Technology Inc., 2355 W. Chandler Blvd., Chandler, AZ 85224-6199. If Licensee has any questions about this Agreement, please write to Microchip Technology Inc., 2355 W. Chandler Blvd., Chandler, AZ 85224-6199 USA. ATTN: Marketing.
+
+Copyright (c) 2012 Microchip Technology Inc. All rights reserved.
+License Rev. No. 022412
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 000000000000..1ef8da30b477
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,94 @@
+# Maintainer: Peter Ivanov <ivanovp@gmail.com>
+# Contributor: joat
+# Submitter: BxS <bxsbxs at gmail dot com>
+
+pkgname=microchip-mplabx-bin
+pkgver=3.00
+pkgrel=1
+pkgdesc="IDE for Microchip PIC and dsPIC development"
+arch=(i686 x86_64)
+url=http://www.microchip.com/mplabx
+license=(custom)
+depends=(gtk2 alsa-lib libxslt libxtst desktop-file-utils jdk7-openjdk)
+makedepends=(fakechroot)
+[ $CARCH = x86_64 ] && depends+=(lib32-glibc lib32-fakeroot)
+optdepends=('microchip-mplabxc8-bin: C compiler for PIC10 PIC12 PIC16 PIC18 MCUs'
+ 'microchip-mplabxc16-bin: C compiler for PIC24 MCUs and dsPIC DSCs'
+ 'microchip-mplabxc32-bin: C Compiler for PIC32 MCUs'
+ 'microchip-mplabc18_bin: C compiler for PIC18 MCUs'
+ 'sdcc: C compiler for PIC16/18 MCUs')
+provides=(mplab)
+conflicts=(mplab)
+options=(!strip docs libtool emptydirs !zipman !upx)
+PKGEXT='.pkg.tar'
+install=$pkgname.install
+instdir=/opt/microchip/mplabx
+installer_tar=MPLABX-v$pkgver-linux-installer.tar
+installer_sh=MPLABX-v$pkgver-linux-installer.sh
+installer=MPLABX-v$pkgver-linux-installer.run
+installer2=MPLABCOMM-linux-installer.run
+source=(http://ww1.microchip.com/downloads/en/DeviceDoc/$installer_tar
+ LICENSE)
+[ $CARCH = x86_64 ] && source+=(fakechroot-i686.pkg.tar.xz::http://www.archlinux.org/packages/extra/i686/fakechroot/download/)
+
+md5sums=('7fd1e76f6355bd7627895f34251aa9ac'
+ 'a34a85b2600a26f1c558bcd14c2444bd')
+[ $CARCH = x86_64 ] && md5sums+=('92b9a1dc8fa0534048790731a7bf2fc5')
+
+package() {
+ cd $srcdir
+
+ mkdir -p $pkgdir/{bin,etc,usr/{bin,lib,local/lib},usr/local/lib,tmp}
+
+ ln -s /bin/bash $pkgdir/bin/
+ ln -s /bin/sh $pkgdir/bin/
+
+ echo "root:x:0:0:root:/root:/bin/bash" > $pkgdir/etc/passwd
+ echo "root:x:0:root" > $pkgdir/etc/group
+
+ echo Extracting installer from the buggy shell script...
+# dd if=$installer_sh of=$installer.tar.gz skip=15067 bs=1 count=1036093 # This is slow because block size is 1 byte
+# dd if=$installer_sh of=$installer.tmp skip=1 bs=1M
+# cat $installer.tmp >>$installer.tar.gz
+# tar xvzf $installer.tar.gz
+# rm $installer.tmp $installer.tar.gz
+ sh $installer_sh --tar xvf
+ cp $srcdir/$installer $pkgdir/
+ cp $srcdir/$installer2 $pkgdir/
+ chmod 0755 $pkgdir/$installer
+ chmod 0755 $pkgdir/$installer2
+
+ echo -e "\n\n\n\n\n\n\n\n\n\ny\n\ny\ny\ny\n\n" > $pkgdir/inst_input
+ echo -e "\n\n\n" > $pkgdir/inst_input2
+
+ echo "#!/bin/bash
+ LD_LIBRARY_PATH=$srcdir/usr/lib/libfakeroot/fakechroot:\$LD_LIBRARY_PATH
+ ./$installer2 --mode text --installdir /opt/microchip/mplabcomm1.0 < inst_input2 &> /dev/null || true
+ ./$installer --mode text < inst_input &> /dev/null || true"> $pkgdir/chroot_input.sh
+# ./$installer --mode text < inst_input || true"> $pkgdir/chroot_input.sh
+ chmod 0755 $pkgdir/chroot_input.sh
+
+ echo -e "Creating the Package\n Please wait..."
+
+ export FAKECHROOT_CMD_SUBST=/usr/bin/ldconfig=$srcdir/fake_ldconfig.sh
+ fakechroot chroot $pkgdir ./chroot_input.sh
+
+ sed -i 's|#jdkhome="/path/to/jdk"|jdkhome=/usr/lib/jvm/java-7-openjdk/|g' $pkgdir$instdir/v$pkgver/mplab_ide/etc/mplab_ide.conf
+ sed -i 's|#jdkhome="/path/to/jdk"|jdkhome=/usr/lib/jvm/java-7-openjdk/|g' $pkgdir$instdir/v$pkgver/mplab_ipe/mplab_ipe
+ sed -i 's|\"$jdkhome\"bin/java -jar \"$jdkhome\"/../../../mplab_ipe/ipe.jar|\"$jdkhome\"bin/java -jar /opt/microchip/mplabx/mplab_ipe/ipe.jar|g' $pkgdir$instdir/v$pkgver/mplab_ipe/mplab_ipe
+
+ rm $pkgdir/{chroot_input.sh,inst_input,$installer,etc/{group,passwd}}
+ rm -r $pkgdir/{bin,tmp}
+
+ ln -s $instdir/v$pkgver/mplab_ide/bin/mplab_ide $pkgdir/usr/bin/mplab_ide
+ ln -s $instdir/v$pkgver/mplab_ipe/mplab_ipe $pkgdir/usr/bin/mplab_ipe
+ ln -s $instdir/../mplabcomm1_0_0/libmchpusb-1.0.so.0.0.0 $pkgdir/usr/local/lib/libmchpusb-1.0.so
+ ln -s $instdir/../mplabcomm1_0_0/mchplinusbdevice $pkgdir/etc/.mplab_ide
+ ln -s $instdir/../mplabcomm1_0_0/libUSBAccessLink.so $pkgdir/usr/lib/libUSBAccessLink.so
+ ln -s $instdir/../mplabcomm1_0_0/libSerialAccessLink.so $pkgdir/usr/lib/libSerialAccessLink.so
+
+ rm -f $pkgdir$instdir/Uninstall*
+
+ install -Dm 644 $srcdir/LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE
+}
+
diff --git a/microchip-mplabx-bin.install b/microchip-mplabx-bin.install
new file mode 100755
index 000000000000..845cadd3160f
--- /dev/null
+++ b/microchip-mplabx-bin.install
@@ -0,0 +1,22 @@
+post_install() {
+ update-desktop-database -q
+ udevadm control --reload-rules &> /dev/null
+
+ echo "---------------------------------------------------------
+Before using MPLAB X you have to agree with LICENSE:
+/usr/share/licenses/microchip-mplabx-bin/LICENSE
+
+To run MPLAB X type 'mplab_ide' in console or just use the 'microchip-mplabx.desktop' desktop file.
+
+To run (IPE) Integrated Programmer Environment (Beta) type 'mplab_ipe' in console or just use the 'microchip-mplab_ipe.desktop' desktop file.
+---------------------------------------------------------"
+}
+
+post_upgrade() {
+ post_install
+}
+
+post_remove() {
+ update-desktop-database -q
+ udevadm control --reload-rules &> /dev/null
+}