updated on Wed Jan 25 08:34:36 UTC 2012
[aur-mirror.git] / hitech-picc_bin / PKGBUILD
blob30d269b411efa01ae5b44122087cb174084bb499
1 # Maintainer: BxS <bxsbxs at gmail dot com>
3 pkgname=hitech-picc_bin
4 _pkgver=9.83
5 pkgver=$_pkgver.10920
6 pkgrel=2
7 pkgdesc="C compiler for PIC10/12/16 MCUs"
8 arch=(i686 x86_64)
9 url='http://www.microchip.com/stellent/idcplg?IdcService=SS_GET_PAGE&nodeId=1406&dDocName=en542849'
10 license=(custom)
11 [ $CARCH = x86_64 ] && depends=(lib32-glibc)
12 provides=(hitech-picc)
13 conflicts=(hitech-picc)
14 options=(!strip docs libtool emptydirs !zipman)
15 install=hitech-picc_bin.install
16 instdir=/opt/hitech/picc/$_pkgver
17 installer=picc-$_pkgver-linux.run
18 source=(http://ww1.microchip.com/downloads/en/DeviceDoc/picc-$_pkgver-linux.zip)
19 md5sums=(a7bbd474955d2ff9e9f26495abc61b95)
21 package() {
22   echo -e "Creating the Package\n  Please wait..."
24   cd $pkgdir
26   mkdir -p $pkgdir$instdir
28   chmod 0755 $srcdir/$installer
29   $srcdir/$installer --noexec --nox11 --target $pkgdir$instdir &> /dev/null
31   rm $pkgdir$instdir/{reactivate.template,shell-install}
32   rm $pkgdir$instdir/bin/{activate,activate.dat}
34   mkdir -p $pkgdir/usr/share/licenses/$pkgname
35   ln -s $instdir/licence.txt $pkgdir/usr/share/licenses/$pkgname/LICENSE