updated on Mon Jan 16 20:00:43 UTC 2012
[aur-mirror.git] / avg-free / PKGBUILD
blob62eb50ae134029c3ca4567eec57eb83e4ca3194b
1 # Contributor: Peter Vogl <peter.vogl@squeaker-media.net>
2 # Contributor: Jose Valecillos <valecillosjg (at) gmail (dot) com>
3 pkgname=avg-free
4 pkgver=r855_a3656
5 pkgrel=1
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')
9 arch=('i686' 'x86_64')
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')
18 build() {
19   cd $srcdir/
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