updated on Tue Jan 10 04:01:21 UTC 2012
[aur-mirror.git] / microchip-mplabc18_bin / PKGBUILD
blob2d4eddf158b23fe4577efd9d0123f69ffe9db28a
1 # Maintainer: BxS <bxsbxs at gmail dot com>
3 pkgname=microchip-mplabc18_bin
4 pkgver=3.40
5 pkgrel=3
6 pkgdesc="C compiler for PIC18 MCUs"
7 arch=(i686 x86_64)
8 url='http://www.microchip.com/stellent/idcplg?IdcService=SS_GET_PAGE&nodeId=1406&dDocName=en010014'
9 license=(custom)
10 [ $CARCH = x86_64 ] && depends=(lib32-glibc)
11 provides=(mplabc18)
12 conflicts=(mplabc18)
13 options=(!strip docs libtool emptydirs !zipman)
14 install=microchip-mplabc18_bin.install
15 instdir=/opt/microchip/mplabc18/v$pkgver
16 installer=mplabc18-v$pkgver-linux-full-installer.run
17 source=(http://ww1.microchip.com/downloads/mplab/X_Beta/$installer)
18 md5sums=(f29df9a4e5c9641a8909bd0a5452d4a9)
20 package() {
21   echo -e "Creating the Package\n  Please wait..."
23   cd $pkgdir
25   mkdir -p $pkgdir$instdir
27   chmod 0755 $srcdir/$installer
28   echo -e "\n\n\n\n\n\n\n\n\n\ny\n$pkgdir$instdir\ny\n" > inst_input
29   $srcdir/$installer --mode text < inst_input &> /dev/null
30   rm inst_input
32   rm $pkgdir$instdir/Uninstall*
34   mkdir -p $pkgdir/usr/share/licenses/$pkgname
35   ln -s $instdir/MPLABC18CompilerLicense.txt $pkgdir/usr/share/licenses/$pkgname/LICENSE
36