pkgname=qmapshack pkgver=1.7.1 pkgrel=1 pkgdesc='Plan your next outdoor trip' arch=('x86_64') url='https://bitbucket.org/maproom/qmapshack/' license=('GPL3') depends=('gdal' 'routino' 'qt5-tools' 'qt5-script' 'qt5-webkit' 'proj') makedepends=('cmake') source=("https://bitbucket.org/maproom/qmapshack/downloads/$pkgname-$pkgver.tar.gz") sha1sums=('8aa97594b431a4cbba455ae5d84f1dc2bda6e7c8') prepare() { cd $pkgname-$pkgver [[ -d build ]] || mkdir build } build() { cd $pkgname-$pkgver/build cmake .. -DCMAKE_INSTALL_PREFIX=/usr make } package() { cd $pkgname-$pkgver/build make DESTDIR=$pkgdir install }