Package Details: microchip-mplabxc32-bin 4.35-1

Git Clone URL: https://aur.archlinux.org/microchip-mplabxc32-bin.git (read-only, click to copy)
Package Base: microchip-mplabxc32-bin
Description: Microchip's MPLAB XC32 C compiler toolchain for all of their 32bit microcontrollers
Upstream URL: https://www.microchip.com/en-us/tools-resources/develop/mplab-xc-compilers
Licenses: custom
Submitter: bxs
Maintainer: marceljoseph (mickael9, thodnev)
Last Packager: marceljoseph
Votes: 13
Popularity: 0.000620
First Submitted: 2012-03-24 20:37 (UTC)
Last Updated: 2023-10-18 18:53 (UTC)

Latest Comments

« First ‹ Previous 1 2 3 4 5 6 Next › Last »

greyltc commented on 2016-01-11 08:56 (UTC)

Thanks for the patch Wesley & calcmogul. I'm sorry it took me so long to apply it!

calcmogul commented on 2016-01-11 07:09 (UTC)

Here's a paste of the patch proposed below: https://paste.unixcube.org/t/7d7c3f

trya commented on 2015-10-18 13:05 (UTC)

@Wesley_Chan: never copy/paste a patch in the comments section, it makes the patch unusable because you lose space indentation in the process. Next time, upload the patch to a pastebin and put the link here. Other than that, I agree with the proposed changes.

Wesley_Chan commented on 2015-09-17 06:12 (UTC)

Hi greyltc, The installation is missing xclm in the proper place. I can see you introduced a blob in the PKGBIULD file. However, this stops users who have previously downloaded the installation file from the official website from re-using it, and those who have slow Internet connection during the process of makepkg. Could you revert it? Thanks. Finally, makepkg compresses the package with XZ. This doesn't make a big improvement on file size and it takes a LONG time. We should consider not to compress it at all. Here's my suggestion. --- PKGBUILD +++ PKGBUILD @@ -1,45 +1,52 @@ # Maintainer: Grey Christoforo <first name at last name dot net> # Contributer: mickael9 <mickael9 at gmail dot com> _number_of_bits=32 pkgname=microchip-mplabxc${_number_of_bits}-bin pkgver=1.40 -pkgrel=3 +pkgrel=4 pkgdesc="Microchip's MPLAB XC${_number_of_bits} C compiler toolchain for all of their 32bit microcontrollers" arch=(i686 x86_64) url=http://www.microchip.com/xc${_number_of_bits} license=(custom) depends_i688=(gcc-libs) depends_x86_64=(lib32-gcc-libs) makedepends=(sdx) makedepends_x86_64=(lib32-tclkit) makedepends_i686=(tclkit) options=(!strip docs libtool emptydirs !zipman staticlibs !upx) -source=("installerBlobFromMicrochip::http://ww1.microchip.com/downloads/en/DeviceDoc/xc${_number_of_bits}-v$pkgver-full-install-linux-installer.run" +source=("http://ww1.microchip.com/downloads/en/DeviceDoc/xc${_number_of_bits}-v$pkgver-full-install-linux-installer.run" "bitrock-unpacker.tcl") md5sums=('06f3f019001cee7d8792561dc8a8da80' '70dedba4c417f8c0bb07c32d19e9d197') install=$pkgname.install instdir="/opt/microchip/xc${_number_of_bits}/v${pkgver}" +PKGEXT='.pkg.tar' build() { msg2 "Unpacking files from installer" - ./bitrock-unpacker.tcl ./installerBlobFromMicrochip ./unpacked.vfs + ./bitrock-unpacker.tcl ./xc${_number_of_bits}-v$pkgver-full-install-linux-installer.run ./unpacked.vfs } package() { mkdir -p "${pkgdir}${instdir}" mv unpacked.vfs/compiler/programfiles*/* "${pkgdir}${instdir}" - mv unpacked.vfs/licensecomponent "${pkgdir}${instdir}" - mv "${pkgdir}${instdir}"/*License.txt "${pkgdir}${instdir}/docs" 2>/dev/null || true + mv unpacked.vfs/licensecomponent/xclmallBin/bin/{roam.lic,xclm} "${pkgdir}${instdir}/bin" + sed -i "s/<xclm>/<xclm>\n\t<xclm:LicenseDirectory xclm:path=\"\/opt\/microchip\/xclm\/license\/\" \/>/" \ + unpacked.vfs/licensecomponent/xclmallBin/etc/xclm.conf + mv unpacked.vfs/licensecomponent/xclmallBin/etc "${pkgdir}${instdir}" + mv unpacked.vfs/licensecomponent/xclmallDocs "${pkgdir}${instdir}/docs/xclm" + cp "${pkgdir}${instdir}"/*License.txt "${pkgdir}${instdir}/docs" 2>/dev/null || true + mv "${pkgdir}${instdir}"/*License.txt "${pkgdir}${instdir}" 2>/dev/null || true mkdir -p "$pkgdir/etc/profile.d" echo "export PATH=\"\$PATH\":'${instdir}/bin'" > "${pkgdir}/etc/profile.d/${pkgname}.sh" echo "export XC${_number_of_bits}_TOOLCHAIN_ROOT='${instdir}'" >> "$pkgdir/etc/profile.d/${pkgname}.sh" mkdir -p "$pkgdir/usr/share/licenses/$pkgname" ln -s "${instdir}/docs/$(basename "${pkgdir}${instdir}/docs"/*[Ll]icense.txt)" "${pkgdir}/usr/share/licenses/$pkgname/LICENSE" }

greyltc commented on 2015-08-05 20:28 (UTC)

Looks great! I'm very glad you found a way to get rid of liblzmadec0.2.so I wasn't able to get rid of it! I think this is the only open source bitrock extractor that exists! Making this PKGBUILD was my first forte into tcl too! (Can't say that I'm a fan!)

mickael9 commented on 2015-08-05 19:33 (UTC)

Hi, I have created a better unpacker for these Bitrock installer packages (my first TCL script ever!). It reads directly from the installer and uses the manifest.txt file to extract files, set the correct file permissions and create symlinks. It also features a fancy progress bar! It needs a 32 bit tclkit (not tcl) which I have packaged as lib32-tclkit (this removes the hack with the lzma decoder library). I changed the install dir to /opt/microchip/xc32/v1.40, just because that's the default path used in the original installer, and the MPLABX package uses the same convention as well. I've also made some other minor/cosmetic changes to the PKGBUILD, you can see the whole diff here : https://github.com/mickael9/microchip-mplabxc32-bin/commit/daa838b12780ccb26cb705142521ec4b701a1cf2 Feel free to pull my changes into your local repositories : $ git pull git@github.com:mickael9/microchip-mplabxc32-bin.git $ git pull git@github.com:mickael9/microchip-mplabxc16-bin.git $ git pull git@github.com:mickael9/microchip-mplabxc8-bin.git

greyltc commented on 2015-08-04 13:40 (UTC)

@mickael9 Thank you for the fix. It's incorporated. Also new in this version: I've put the license manager files that come in the installer blob into /opt/microchip-mplabxc32-bin/licensecomponent

mickael9 commented on 2015-08-03 19:34 (UTC)

Alright, I found the problem, the PKGBUILD mixed up cc1 and cc1plus when reassembling. Here is a patch for the PKGBUILD : http://ix.io/k5g