blob: 0d98ff71325ced8c144b7bfb7daa343aca238b3e (
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
|
# Contributor: Francois Boulogne <fboulogne at april dot org>
# Maintainer: Gaetan Bisson <bisson@archlinux.org>
pkgname=subsurface-git
_pkgname=subsurface
pkgver=20221119.f27ff6597
pkgrel=2
pkgdesc='Divelog program'
url='https://subsurface-divelog.org/'
license=('GPL2')
arch=('i686' 'x86_64')
makedepends=('git' 'cmake' 'asciidoc' 'qt5-tools')
depends=('libzip' 'libxml2' 'libxslt' 'sqlite' 'libusb' 'libgit2' 'googlemaps'
'subsurface-libdc-git' 'qt5-svg' 'qt5-location' 'qt5-connectivity')
source=('git+https://github.com/subsurface/subsurface')
sha256sums=('SKIP')
# No QtLocation in Qt6 yet...
# https://bugreports.qt.io/browse/QTBUG-96795
provides=('subsurface')
conflicts=('subsurface')
pkgver() {
cd "${srcdir}/${_pkgname}"
git log -1 --format='%cd.%h' --date=short | tr -d -
}
build() {
cd "${srcdir}/${_pkgname}"
install -d build
cd build
cmake \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
-DLIBDIVECOMPUTER_INCLUDE_DIR=/usr/include/libdivecomputer \
..
make
}
package() {
cd "${srcdir}/${_pkgname}"
cd build
make DESTDIR="${pkgdir}" install
}
|