summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: c5c02a00e83551ed9f69f70567b18f60dac823b7 (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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
# Contributor: Luis Martinez <luis dot martinez at disroot dot org>
# Contributor: Christian Rebischke <chris.rebischke@archlinux.org>
# Contributor: Levente Polyak <anthraxx[at]archlinux[dot]org>
# Contributor : Daniel Micay <danielmicay@gmail.com>

## GPG key: https://greenbone.net/GBCommunitySigningKey.asc

pkgname=gvm-libs
pkgver=22.15.0
pkgrel=1
pkgdesc='greenbone-vulnerability-manager libraries'
arch=('x86_64')
url="https://github.com/greenbone/gvm-libs"
license=('GPL')
groups=('greenbone-vulnerability-manager')
depends=(
    'cjson'
	'gnutls'
	'hiredis'
	'json-glib'
	'libgcrypt'
	'libgio-2.0.so'
	'libglib-2.0.so'
	'libgpgme.so'
	'libldap'
	'libnet'
	'libssh.so'
	'libuuid.so'
	'libxml2.so'
	'paho-mqtt-c'
	'zlib')
makedepends=('cmake')
provides=(
	"libgvm_base.so=${pkgver::2}-64"
	"libgvm_boreas.so=${pkgver::2}-64"
	"libgvm_gmp.so=${pkgver::2}-64"
	"libgvm_osp.so=${pkgver::2}-64"
	"libgvm_util.so=${pkgver::2}-64")
replaces=('openvas-libraries')
source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz"
        "$pkgname-$pkgver.tar.gz.asc::$url/releases/download/v$pkgver/$pkgname-v$pkgver.tar.gz.asc")
sha256sums=('e7bd3fc6e8e0c965ab51c09d319790eb44697a96953415bc2670b8dae5875664'
            'SKIP')
validpgpkeys=('8AE4BE429B60A59B311C2E739823FAA60ED1E580') # GVM Transfer Integrity

PURGE_TARGETS=('var/run')

prepare() {
	cd "$pkgname-$pkgver"
	sed -i '/-Werror/d' CMakeLists.txt
}

build() {
	cmake \
		-B build \
		-S "$pkgname-$pkgver" \
		-DCMAKE_BUILD_TYPE=None \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DLIBDIR=/usr/lib \
		-DSYSCONFDIR=/etc \
		-DLOCALSTATEDIR=/var
	make -C build
}

package() {
	make DESTDIR="${pkgdir}/" -C build install
	rm -rf "$pkgdir/run"
}