summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: bd75278e6a1dada2546c17eec82ff0d8c0ac7b3b (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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# Maintainer : Raphaƫl Doursenaud <rdoursenaud@gpcsolutions.fr>
# Previous Maintainer : kuri <sysegv at gmail dot com>
# Contributor : Kevin C <kiven at kiven dot fr>
# Contributor: Alex 'AdUser' Z
pkgname=fusioninventory-agent-bin
_pkgname="FusionInventory-Agent"
pkgver=2.6
pkgrel=1
pkgdesc="An application for keeping track of the hardware and software"
arch=(any)
url="https://github.com/fusioninventory/fusioninventory-agent"
license=('GPL')
provides=('fusioninventory-agent')
conflicts=('fusioninventory-agent')
install=.INSTALL
depends=(
  'perl>=5.8'
  'perl-module-build'
  'perl-file-which'
  # Provides LWP::UserAgent
  'perl-libwww>=5.8'
  'perl-net-ip'
  'perl-text-template'
  #'perl-universal-require'
  #'perl-xml-treepp>=0.26'
  'perl-data-structure-util'
  #'perl-proc-daemon'
)
source=("https://github.com/fusioninventory/fusioninventory-agent/releases/download/${pkgver}/fusioninventory-agent_${pkgver}-${pkgrel}_all.deb"
  "agent.cfg"
)
md5sums=('6a7599a355f03192cf16ef852bc93944'
  'eaf2c13c8adb7e57da038f3ae521ab35'
)


package() {
  tar xf ${srcdir}/data.tar.xz
    
  # Clear
  unlink ${srcdir}/control.tar.xz
  unlink ${srcdir}/data.tar.xz
  unlink ${srcdir}/debian-binary
  unlink ${srcdir}/fusioninventory-agent_${pkgver}-${pkgrel}_all.deb
  
  cp -a ${srcdir}/etc/ $pkgdir/etc/
  cp -a ${srcdir}/usr/ $pkgdir/usr/
  cp -a ${srcdir}/lib/ $pkgdir/usr/lib/
  cp -a ${srcdir}/var/ $pkgdir/var/
  
  install -D -m444 ${srcdir}/agent.cfg $pkgdir/etc/fusioninventory/agent.cfg.default
}