blob: c77d6050365ae1d0883adebc444c961201d6d7cd (
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: Luis Martinez <luis dot martinez at disroot dot org>
# Contributor: Gaetan Bisson <bisson@archlinux.org>
# Contributor: David Runge <dvzrv@archlinux.org>
# Contributor: Francois Boulogne <fboulogne at april dot org>
pkgname=subsurface
pkgver=5.0.10
pkgrel=1
pkgdesc='Divelog program'
url='https://github.com/subsurface/subsurface'
license=('GPL2')
arch=('x86_64')
depends=(
'googlemaps' ## AUR
'grantlee'
'hicolor-icon-theme'
'libgit2'
'libzip'
'libxml2'
'libxslt'
'subsurface-libdc' ## AUR
'qt5-svg'
'qt5-location'
'qt5-connectivity'
'qt5-webkit'
'sqlite')
makedepends=(
'asciidoc'
'cmake'
'libgit2'
'libusb'
'qt5-tools')
source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz")
sha256sums=('f9059c58d4063961c62fa4bdc1060637f39bed9360d6ffbfc36b0394016f02c6')
PURGE_TARGETS=(*.debug)
# qt5-webkit still used for: printing, manual
build() {
cmake \
-B build \
-S "$pkgname-$pkgver" \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
-DLIBDIVECOMPUTER_INCLUDE_DIR=/usr/include/libdivecomputer \
-Wno-dev
cmake --build build
}
package() {
DESTDIR="${pkgdir}" cmake --install build
}
|