summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 361c730257891717b8e688720af3dd5a13017e6d (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
# Maintainer: Your Name <youremail@domain.com>
pkgname=perimeter81
pkgver=latest
pkgrel=1
pkgdesc='Perimeter81 agent application'
arch=('x86_64')
url='https://support.perimeter81.com/docs/downloading-the-agent'
license=('custom:LICENSE')
depends=('systemd')
options=(!strip)
source=(
  'https://static.perimeter81.com/agents/linux/snapshot/latest/Perimeter81.deb'
  'perimeter81helper.service'
)
md5sums=(
  'SKIP'
  'SKIP'
)

prepare() {
  bsdtar -xf data.tar.xz
}

pkgver() {
  bsdtar -Oxf control.tar.gz control | awk '/Version:/{gsub(/\-/, ".", $2); print $2}'
}

package() {
  cp -r opt usr $pkgdir/
  install -Dm644 $srcdir/perimeter81helper.service $pkgdir/usr/lib/systemd/system/perimeter81helper.service
}