summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 864190436852508413031e262d2733474653f7f1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
pkgname=fing
pkgver=5.4.0
pkgrel=1
pkgdesc='The ultimate tool for network discovery and scanning'
arch=('x86_64')
url='https://www.fing.com/images/uploads/general/Fing_CLI_User_Guide_1.2.pdf'
license=('custom:FING EXECUTABLE LICENSE')
depends=('icu55')
options=(!strip)
source=(https://www.fing.com/images/uploads/general/CLI_Linux_others_${pkgver}.zip)
sha1sums=('e66136543e7c5169d9a17b88ad836b2a32754ddc')

prepare() {
    tar -zxvf ${pkgname}-${pkgver}-amd64.tar.gz
}

package() {
  cd "${srcdir}"/${pkgname}-${pkgver}-amd64
  cp -r usr ${pkgdir}/
  install -dm755 "${pkgdir}"/etc/${pkgname}
  install -Dm644 ./usr/local/share/${pkgname}/template/conf/*.properties "${pkgdir}"/etc/${pkgname}

  # license
  install -dm755 "${pkgdir}"/usr/local/share/licenses/${pkgname}
  ln -s /usr/local/share/${pkgname}/doc/license.txt "${pkgdir}"/usr/local/share/licenses/${pkgname}/license

  # cleanup
  rm -rf "${pkgdir}"/usr/local/lib/fing/init.d
  rm -rf "${pkgdir}"/usr/local/lib/fing/upstart
  rm -f  "${pkgdir}"/usr/bin/fing-uninstall.sh
}