# Contributor: Francois Boulogne # Maintainer: Gaetan Bisson pkgname=subsurface-git _pkgname=subsurface pkgver=20180524.86ab5a91f pkgrel=1 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' 'subsurface-libdc-git' 'qt5-svg' 'qt5-location' 'qt5-connectivity' 'qt5-webkit' 'grantlee' 'googlemaps') source=('git+https://github.com/Subsurface-divelog/subsurface' 'delete.patch') sha256sums=('SKIP' '59135a6917643be1608eb88db1dc81a740c8b0cff01f9ed62fa80e7d7523ee47') # qt5-webkit still used for: printing, manual, facebook provides=('subsurface') conflicts=('subsurface') pkgver() { cd "${srcdir}/${_pkgname}" git log -1 --format='%cd.%h' --date=short | tr -d - } prepare() { cd "${srcdir}/${_pkgname}" # https://bugreports.qt.io/browse/QTBUG-67948 patch -p1 -i ../delete.patch } 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 }