summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 2da274f541301c1dec8ef8399f31798a632426f3 (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
# Maintainer: Oleg Shparber <oleg@zealdocs.org>

_appname=zeal
_builddir=build

pkgname=${_appname}-git
pkgver=0.7.0.r0.g90ad776
pkgrel=3
pkgdesc='Offline documentation browser'
arch=('aarch64' 'i686' 'x86_64')
url="https://zealdocs.org/"
license=('GPL3')
depends=(
  'glibc'
  'gcc-libs'
  'hicolor-icon-theme'
  'qt6-webengine'
  'qt6-base'
  'qt6-webchannel'
  'sqlite'
  'libarchive'
  'libxcb'
  'libx11'
  'xcb-util-keysyms'
)
makedepends=(
  'cmake'
  'extra-cmake-modules'
  'git'
  'ninja'
)
provides=(${_appname})
conflicts=(${_appname})
source=("${_appname}::git+https://github.com/zealdocs/${_appname}#branch=main")
sha1sums=('SKIP')

pkgver() {
  cd ${_appname}

  git describe --long | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
  cmake \
    -G Ninja \
    -B "${_builddir}" \
    -S "${_appname}" \
    -DCMAKE_INSTALL_PREFIX=/usr \
    -DCMAKE_BUILD_TYPE=RelWithDebInfo

  cmake --build "${_builddir}"
}

package() {
  cmake --install "${_builddir}" --prefix "${pkgdir}/usr"
}