description="Divelog program"
url="https://subsurface-divelog.org/"

packager="spiky <spiky@nutyx.org>"
contributors=""

makedepends=(asciidoc cmake libgit2 libusb qttools)
run=(googlemaps grantlee-qt hicolor-icon-theme
     libzip libxml2 libxslt subsurface-libdc
     qtsvg qtlocation qtconnectivity qtwebkit
     sqlite)

name=subsurface
version=5.0.10

source=(https://subsurface-divelog.org/downloads/Subsurface-$version.tgz)

build() {
cd Subsurface-$version
mkdir build 
cd build
cmake   -DCMAKE_INSTALL_PREFIX=/usr \
        -DLIBDIVECOMPUTER_INCLUDE_DIR=/usr/include/libdivecomputer \
        -Wno-dev \
        ..
make
make DESTDIR=$PKG install
}
