updated on Thu Jan 12 04:00:44 UTC 2012
[aur-mirror.git] / overlook-fing / PKGBUILD
blobfa4dbc436b4095b33750afb7b8e39a53dadbc07f
1 # Contributor: Piotr Rogoża <rogoza dot piotr at gmail dot com>
2 # Created: 08/12/2010
3 pkgname=overlook-fing
4 pkgver=1.4
5 _pkgver=1_4
6 pkgrel=1
7 pkgdesc='Fing is the ultimate tool for network discovery and scanning'
8 arch=('i686' 'x86_64')
9 url='http://www.over-look.com/'
10 license=('custom:Overlook Freeware license')
11 depends=('sh' 'zlib')
12 options=(!strip)
13 case $CARCH in
14   i686)
15     source=("${pkgname}-${pkgver}.tgz::http://www.over-look.com/site/index.php/fing-download-linux/32bit/117-${pkgname}-${_pkgver}/download")
16   md5sums=('b26cd267c8ba8ca93223a195672e47f2')
17     ;;
18   x86_64)
19     source=("${pkgname}-${pkgver}.tgz::http://www.over-look.com/site/index.php/fing-download-linux/64bit/113-${pkgname}-${_pkgver}/download")
20    md5sums=('5d9f3c3f8f952ac5b7c72b2cecdd8629')
21    ;;
22 esac
24 build() {
25   cd "$srcdir"
26   install -dm755 ${pkgdir}/ || return 1
27   tar -c ./ --exclude ${pkgname}-${pkgver}.tgz | tar -C ${pkgdir}/ -x || return 1
28   install -dm755 ${pkgdir}/usr/share/licenses/${pkgname} || return 1
29   mv ${pkgdir}/usr/share/fing/doc/license.txt ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE ||\
30     return 1
31   install -dm755 ${pkgdir}/etc/fing || return 1
32   install -Dm644 ${pkgdir}/usr/share/fing/template/conf/* ${pkgdir}/etc/fing/ || return 1
35 # vim:set ts=2 sw=2 et ft=sh tw=100: