updated on Sun Jan 22 20:01:29 UTC 2012
[aur-mirror.git] / arcacmd / PKGBUILD
blobbe69d27f22ad6a1ea7be1c38be50aa4fee2c3422
1 # Contributor: Piotr Beling <qwak82@gmail.com>
3 pkgname=arcacmd
4 pkgver=2007.03.19
5 pkgrel=4
6 pkgdesc="antivirus from ArcaBit (Poland)"
7 arch=(i686 x86_64)
8 depends=(libstdc++5 wget bc)
9 [ "$CARCH" = "x86-64" ] && depends[0]='lib32-libstdc++5'
10 makedepends=()
11 url="http://www.arcavir.pl"
12 source=($url/download/linux/arcacmd-Linux2.6-bundle.tgz)
13 license=('custom')
14 install=$pkgname.install
15 backup=(usr/local/etc/arcacmdg.conf)
17 __arcacmd__inst()
19     install -D -m $1 -p -v $2 $3/$2
22 build() {
23     cd $srcdir
24     
25     #sed -i -e "s|/usr/local/|$pkgdir/usr/local/|g" install.linux
26     
27     cd inst/files/
28     umask 022
29     __arcacmd__inst 0755 arcacmd                $pkgdir/usr/local/bin
30     __arcacmd__inst 0755 arcacmd.sh             $pkgdir/usr/bin
31     ln -s /usr/local/bin/arcacmd $pkgdir/usr/bin
32     __arcacmd__inst 0755 arcaupdate             $pkgdir/usr/sbin
33     cd docs
34     __arcacmd__inst 0644 arcacmd.1.gz           $pkgdir/usr/man/man1
35     cd ..
36     __arcacmd__inst 0644 arcacmdg.conf                  $pkgdir/usr/local/etc
37     __arcacmd__inst 0644 arcacmdl.conf.template         $pkgdir/usr/local/etc
39     install -d $pkgdir/usr/local/share/arcacmd/bases/tmp
40     for f in lang/* bases/* docs/COPYING.*; do
41         __arcacmd__inst 0644 $f                 $pkgdir/usr/local/share/arcacmd
42     done
43     
44     cd docs
45     for f in COPYING.*; do
46         __arcacmd__inst 0644 $f                 $pkgdir/usr/share/licenses/arcacmd
47     done
48     cd ..
51 md5sums=('7901ec6dd0dbea6f4dd3d32fb080f499')