1 # Contributor: Peter Vogl <peter.vogl@squeaker-media.net>
2 # Contributor: Jose Valecillos <valecillosjg (at) gmail (dot) com>
6 pkgdesc="AVG free anti-virus for private, non-commercial, single home computer use only"
7 url="http://free.grisoft.com"
8 makedepends=('rpmextract' 'coreutils')
10 [ "$CARCH" = "i686" ] && depends=('glibc' 'expat')
11 [ "$CARCH" = "x86_64" ] && depends=('lib32-glibc' 'lib32-expat')
12 source=(http://aa-download.avg.com/filedir/inst/avg85flx-${pkgver//_/-}.i386.rpm avgd)
13 install=avg-free.install
14 license=('Free for Private Use')
15 md5sums=('7278ab598b1872ecbdb9d6e2c6b98fae'
16 '45d3c64133167fcd4d1f885f90c64ea3')
20 rpmextract.sh avg85flx-${pkgver//_/-}.i386.rpm
21 # The line below is REALLY required
22 chmod 755 `ls -AFR $srcdir/ | grep : | tr -d ':'`
23 cp -a $srcdir/usr $pkgdir/
24 cp -a $srcdir/opt $pkgdir/
25 cp -a $srcdir/etc $pkgdir/
26 mkdir -p $pkgdir/etc/rc.d
27 cp $startdir/avgd $pkgdir/etc/rc.d
28 #rm -f $pkgdir/etc/avg.conf
29 #cp $startdir/avg.conf $pkgdir/etc/avg.conf
31 sed 's/\/var\/lock\/subsys/\/var\/lock/g' $pkgdir/opt/avg/avg8/etc/init.d/avgdinit.conf >> $pkgdir/opt/avg/avg8/etc/init.d/avgdinit.conf
33 #Copy licence key for post installation registration
35 strings *.rpm | grep FREE | sed -n 's/.*"\(.*\)".*/\1/ip;T;q' >> $pkgdir/opt/avg/avg8/KEY