summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD33
1 files changed, 33 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..70dd8f0a93d
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,33 @@
+# Maintainer: Sanpi <sanpi+aur@homecomputing.fr>
+pkgname='qmapshack-hg'
+pkgver=r2393.ed1a61d9786d
+pkgrel=1
+pkgdesc='Plan your next outdoor trip'
+arch=('x86_64')
+url='https://bitbucket.org/maproom/qmapshack/'
+license=('GPL3')
+depends=('gdal' 'routino>=3.1' 'qt5-tools' 'qt5-script')
+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
+}