Package Details: microchip-mplabxc32-bin 1.43-1

Git Clone URL: (read-only)
Package Base: microchip-mplabxc32-bin
Description: Microchip's MPLAB XC32 C compiler toolchain for all of their 32bit microcontrollers
Upstream URL:
Licenses: custom
Submitter: bxs
Maintainer: greyltc
Last Packager: greyltc
Votes: 8
Popularity: 0.000587
First Submitted: 2012-03-24 20:37
Last Updated: 2017-06-06 09:29

Latest Comments

logicnotlogical commented on 2017-12-24 16:44

I had to wrangle a lot of the package() method to get this to build successfully. notably the xclmallBin directory no longer exists, files are found at xclmBinlinux32 instead. This concerns lines 35-39 in the PKGBUILD.

anatolyb commented on 2017-01-13 09:48

replace 39'th string with this:

mv unpacked.vfs/licensecomponent/xclmallBin/etc/xclm.conf "${pkgdir}${instdir}/etc"

gdamjan commented on 2016-08-07 17:09

==> Starting build()...
-> Unpacking files from installer
Creating directories...
Unpacking files, please wait...
|=== ( 4.52% ) |couldn't open "./unpacked.vfs/compiler/programfilesosx/examples/assembly_examples/ports_control/ports_control.X/nbproject/": no such file or directory
while executing
"open $destDir/$fileName a"
("foreach" body line 14)
invoked from within
"foreach {fileName props} $manifest {
set type [lindex $props 0]

if {$type == "file"} {
set mode [lindex $props 1]
set sizes [..."
(file "./bitrock-unpacker.tcl" line 77)
==> ERROR: A failure occurred in build().
warning: package microchip-mplabxc32-bin failed to build, skipping

doragasu commented on 2016-07-11 07:37

Build fails here:

==> Starting package()...
mv: cannot move 'unpacked.vfs/licensecomponent/xclmallBin/etc' to '/home/jalon/src/aur/microchip-mplabxc32-bin/pkg/microchip-mplabxc32-bin/opt/microchip/xc32/v1.42/etc': Directory not empty
==> ERROR: A failure occurred in package().

henrikjuul commented on 2016-06-21 12:07

Updated PKGBUILD to 1.42-1

Wesley_Chan commented on 2016-02-02 06:20


Oh, thanks to you. Would you please do the same to XC8?

greyltc commented on 2016-01-11 08:56

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

Here's a paste of the patch proposed below:

trya commented on 2015-10-18 13:05

@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

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.

@@ -1,45 +1,52 @@
# Maintainer: Grey Christoforo <first name at last name dot net>
# Contributer: mickael9 <mickael9 at gmail dot com>

pkgdesc="Microchip's MPLAB XC${_number_of_bits} C compiler toolchain for all of their 32bit microcontrollers"
arch=(i686 x86_64)

options=(!strip docs libtool emptydirs !zipman staticlibs !upx)



build() {
msg2 "Unpacking files from installer"
- ./bitrock-unpacker.tcl ./installerBlobFromMicrochip ./unpacked.vfs
+ ./bitrock-unpacker.tcl ./xc${_number_of_bits}-v$ ./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"

All comments