# Maintainer: Sanpi pkgname='qmapshack-hg' pkgver=r3004.43b0987e3069 pkgrel=1 pkgdesc='Plan your next outdoor trip' arch=('x86_64') url='https://bitbucket.org/maproom/qmapshack/' license=('GPL3') depends=('hicolor-icon-theme' 'gdal' 'quazip' 'qt5-script' 'qt5-webkit' 'routino>=3.1') makedepends=('cmake' 'mercurial') conflicts=('qmapshack') provides=('qmapshack') source=("$pkgname::hg+https://bitbucket.org/maproom/qmapshack") sha256sums=('SKIP') pkgver() { cd "$pkgname" printf "r%s.%s" "$(hg identify -n)" "$(hg identify -i)" } build() { cd "$pkgname" cmake ./ -DCMAKE_INSTALL_PREFIX=/usr make } package() { cd "$pkgname" make DESTDIR="${pkgdir}" install }