updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / microchip-mplabc30_bin / PKGBUILD
blob9b652f5ad57351460c52736c7443a7bd4893d86a
1 # Maintainer: BxS <bxsbxs at gmail dot com>
3 pkgname=microchip-mplabc30_bin
4 pkgver=3.30c
5 pkgrel=4
6 pkgdesc="C compiler for PIC24 MCUs and dsPIC DSCs"
7 arch=(i686 x86_64)
8 url='http://www.microchip.com/stellent/idcplg?IdcService=SS_GET_PAGE&nodeId=1406&dDocName=en010065'
9 license=(custom)
10 [ $CARCH = x86_64 ] && depends=(lib32-glibc)
11 provides=(mplabc30)
12 conflicts=(mplabc30)
13 options=(!strip docs libtool emptydirs !zipman)
14 install=microchip-mplabc30_bin.install
15 instdir=/opt/microchip/mplabc30/v$pkgver
16 installer=mplabc30-v$pkgver-linux-installer.run
17 source=(http://ww1.microchip.com/downloads/mplab/X/$installer)
18 md5sums=(f50954d415a7bef3abf190d9c4f8f6e2)
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\n\n\n\ny\n$pkgdir$instdir\ny\n" > inst_input
29   $srcdir/$installer --edition lite --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/License.txt $pkgdir/usr/share/licenses/$pkgname/LICENSE