diff options
author | Evan Anderson | 2015-08-25 20:51:59 -0400 |
---|---|---|
committer | Evan Anderson | 2015-08-25 20:52:59 -0400 |
commit | 03722ac104918fc79d2ff0362b2358268229f009 (patch) | |
tree | d93e289c82f7d349465778572941fbf0bcb1af31 | |
download | aur-03722ac104918fc79d2ff0362b2358268229f009.tar.gz |
Initial commit
Signed-off-by: Evan Anderson <evananderson@thelinuxman.us>
-rw-r--r-- | .SRCINFO | 21 | ||||
-rw-r--r-- | PKGBUILD | 38 | ||||
-rw-r--r-- | microchip-mplabc18-bin.install | 16 |
3 files changed, 75 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..8404aea8f9ff --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,21 @@ +pkgbase = microchip-mplabc18-bin + pkgdesc = C compiler for PIC18 MCUs + pkgver = 3.40 + pkgrel = 1 + url = http://www.microchip.com/c18 + install = microchip-mplabc18-bin.install + arch = i686 + arch = x86_64 + license = custom + provides = mplabc18 + conflicts = mplabc18 + options = !strip + options = docs + options = libtool + options = emptydirs + options = !zipman + source = https://bitbucket.org/simbuckone/simbuckbaseproject/downloads/mplabc18-v3.40-linux-full-installer.run + md5sums = f29df9a4e5c9641a8909bd0a5452d4a9 + +pkgname = microchip-mplabc18-bin + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..a5bd07be04ee --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,38 @@ +# Maintainer: Evan Anderson <evananderson@thelinuxman.us> +# Former maintainer: David Manouchehri <david@davidmanouchehri.com> +# Former maintainer: BxS <bxsbxs at gmail dot com> + +pkgname=microchip-mplabc18-bin +pkgver=3.40 +pkgrel=1 +pkgdesc="C compiler for PIC18 MCUs" +arch=(i686 x86_64) +url=http://www.microchip.com/c18 +license=(custom) +[[ $CARCH = x86_64 ]] && depends=(lib32-gcc-libs) +provides=(mplabc18) +conflicts=(mplabc18) +options=(!strip docs libtool emptydirs !zipman) +install=$pkgname.install +instdir=/opt/microchip/mplabc18/v$pkgver +installer=mplabc18-v$pkgver-linux-full-installer.run +source=(https://bitbucket.org/simbuckone/simbuckbaseproject/downloads/$installer) +md5sums=(f29df9a4e5c9641a8909bd0a5452d4a9) + +package() { + echo -e "Creating the Package\n Please wait..." + + cd $pkgdir + + mkdir -p $pkgdir$instdir + + chmod 0755 $srcdir/$installer + echo -e "\n\n\n\n\n\n\n\n\n\ny\n$pkgdir$instdir\ny" > inst_input + $srcdir/$installer --mode text < inst_input &> /dev/null + rm inst_input + + rm $pkgdir$instdir/Uninstall* + + mkdir -p $pkgdir/usr/share/licenses/$pkgname + ln -s $instdir/MPLABC18CompilerLicense.txt $pkgdir/usr/share/licenses/$pkgname/LICENSE +} diff --git a/microchip-mplabc18-bin.install b/microchip-mplabc18-bin.install new file mode 100644 index 000000000000..fece58cde1b5 --- /dev/null +++ b/microchip-mplabc18-bin.install @@ -0,0 +1,16 @@ +post_install() { + echo " +Before using MPLAB_C18 you have to agree with the LICENSE at: +/usr/share/licenses/microchip-mplabc18_bin/LICENSE + +For using MPLAB_C18 with MPALB_X (microchip-mplab-bin), in MPLAB_X go to: +Tools->Options->Embedded->Add + +and enter: +/opt/microchip/mplabc18/v3.40/bin +" +} + +post_upgrade() { + post_install +} |