# Contributor: Francois Boulogne # Maintainer: Gaetan Bisson pkgname=subsurface-git _pkgname=subsurface pkgver=20150705.35b4af9 pkgrel=1 pkgdesc='Divelog program' url='http://subsurface-divelog.org/' license=('GPL2') arch=('i686' 'x86_64') makedepends=('git' 'cmake' 'asciidoc') depends=('libzip' 'libxml2' 'libxslt' 'sqlite' 'libusb' 'libgit2' 'grantlee-qt5' 'subsurface-libdc-git' 'subsurface-marble') source=('git://git.subsurface-divelog.org/subsurface') sha1sums=('SKIP') install=install provides=('subsurface') conflicts=('subsurface') pkgver() { cd "${srcdir}/${_pkgname}" git log -1 --format='%cd.%h' --date=short | tr -d - } build() { cd "${srcdir}/${_pkgname}" cmake \ -DCMAKE_BUILD_TYPE=Release \ -DCMAKE_INSTALL_PREFIX=/usr \ -DMARBLE_INCLUDE_DIR='/usr/include/subsurface' \ . make } package() { cd "${srcdir}/${_pkgname}" make DESTDIR="${pkgdir}" install }