summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: e9e26a66c143ee79c3f64db22a3432d4cf49c010 (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
# Maintainer: Valentino Orlandi <valentinox@disroot.org>

_gitname='LogDoctor'
pkgname='logdoctor'
pkgver='4.01'
pkgrel='1'
pkgdesc="Apache2/Nginx/IIS access logs analyzer to view dynamically generated statistics"
arch=('x86_64')
url='https://github.com/elB4RTO/LogDoctor'
license=('AGPL3')
depends=('qt6-base' 'qt6-charts' 'zlib')
makedepends=('cmake' 'qt6-tools')
optdepends=()
provides=()
conflicts=()
replaces=()
backup=()
options=()
install=
changelog=
source=("$pkgname-$pkgver.tar.gz::https://github.com/elB4RTO/LogDoctor/archive/refs/tags/v$pkgver.tar.gz")
noextract=()
sha256sums=('bd6380d6daec746939aa7a14eb2b3daaa3ceb1902e9c0a711942438850fcca72')
validpgpkeys=('EF88B042FB649B22A9F19DBE1719E976DB2D4E71')


build() {
  cd "$_gitname-$pkgver"

  test -e build && rm -r build
  mkdir build && cd build

  cmake --fresh ../logdoctor -DCMAKE_BUILD_TYPE=Release
  cmake --build ./ --target all -j$(nproc)

  mv "$_gitname" "$pkgname"
}


package() {
  cd "$_gitname-$pkgver"

  install -DC -m 755 "./build/$pkgname" "$pkgdir/usr/bin/$pkgname"

  install -DC -m 444 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname"

  cd installation_stuff
  install -DC -m 644 ./LogDoctor.svg -t "$pkgdir/usr/share/LogDoctor"
  install -DC -m 644 ./logdocdata/help/en_GB/* -t "$pkgdir/usr/share/LogDoctor/help/en_GB"
  install -DC -m 644 ./logdocdata/help/it_IT/* -t "$pkgdir/usr/share/LogDoctor/help/it_IT"
  install -DC -m 444 ./logdocdata/licenses/* -t "$pkgdir/usr/share/LogDoctor/licenses"
  install -DC -m 644 ./LogDoctor.desktop -t "$pkgdir/usr/share/applications"
}