summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 0c978f3a9cfd21ccf861be710ebfd4dec7c5bfcd (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
# Maintainer: lanthora <lanthora at outlook dot com>

pkgname=tellus-git
pkgver=r59.3dfbc02
pkgrel=1
pkgdesc="Host Intrusion Detection and Prevention System Based on Kernel Module"
arch=('x86_64' 'armv7h' 'aarch64')
url="https://github.com/lanthora/tellus"
license=('GPL')
depends=('dkms' 'libnl')
makedepends=('git' 'cmake' 'make' 'go' 'npm' 'nodejs' 'nlohmann-json')
backup=('etc/hackernel/telegram.yaml' 'etc/hackernel/web.yaml')
source=("$pkgname::git+https://github.com/lanthora/tellus.git")
sha256sums=('SKIP')

pkgver() {
  cd "$pkgname"
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

prepare() {
  cd "$pkgname"
  make init
}

build() {
  cd "$pkgname"
  make arch-build
}

package() {
  cd "$pkgname"
  make DESTDIR="$pkgdir/" arch-install
}