summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 069e13d3bff410f192c3ad94300acb2e6c28fd11 (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
# Maintainer: Nicola Revelant <nicolarevelant@outlook.com>

pkgname=fwbuilder-git
pkgver=4853.8013c00e1
pkgrel=2
pkgdesc="Object-oriented GUI and set of compilers for various firewall platforms. Git version"
url="https://github.com/fwbuilder/fwbuilder"
arch=('x86_64')
license=('GPL-2.0-or-later')
depends=(
	'qt6-base'
	'hicolor-icon-theme'
	'libxml2'
	'libxslt'
	'net-snmp'
	'zlib'
)
makedepends=(
	'git'
	'cmake'
	'ninja'
)

source=("git+$url.git")
sha256sums=('SKIP')

build() {
	cd fwbuilder
	cmake -B build -GNinja -DUseQt6=1 -DCMAKE_INSTALL_PREFIX=/usr
	cmake --build build
}

package() {
	cd fwbuilder
	cmake --install build --prefix="$pkgdir/usr"
}

pkgver() {
	cd fwbuilder
	echo $(git rev-list --count master).$(git rev-parse --short master)
}