summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorManuel Reimer2015-05-23 11:35:02 +0200
committerManuel Reimer2015-05-23 11:35:02 +0200
commit75594bf4aa12c18e549d4ea535641157eff6994e (patch)
treee2f7d77f6c7ee079f5383e75b297f8e9654c4c6c
downloadaur-75594bf4aa12c18e549d4ea535641157eff6994e.tar.gz
Initial commit
-rw-r--r--.SRCINFO25
-rw-r--r--PKGBUILD32
-rw-r--r--merkaartor-git.install12
3 files changed, 69 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..dd1c27f0319
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,25 @@
+# Generated by makepkg 4.2.1
+# Sun May 17 09:47:43 UTC 2015
+pkgbase = merkaartor-git
+ pkgdesc = Merkaartor openstreetmap mapping program
+ pkgver = 0.18.1.r144.gdcebd61
+ pkgrel = 1
+ url = http://www.merkaartor.be/
+ install = merkaartor-git.install
+ arch = i686
+ arch = x86_64
+ license = GPL2
+ makedepends = qt5-tools
+ makedepends = git
+ depends = qt5-svg
+ depends = gdal
+ depends = qt5-webkit
+ depends = desktop-file-utils
+ depends = gtk-update-icon-cache
+ provides = merkaartor
+ conflicts = merkaartor
+ source = git+https://github.com/openstreetmap/merkaartor.git
+ md5sums = SKIP
+
+pkgname = merkaartor-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..f88f12b6f14
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,32 @@
+_pkgname=merkaartor
+pkgname=$_pkgname-git
+pkgver=0.18.1.r144.gdcebd61
+pkgrel=1
+pkgdesc='Merkaartor openstreetmap mapping program'
+url='http://www.merkaartor.be/'
+arch=('i686' 'x86_64')
+license=('GPL2')
+depends=('qt5-svg' 'gdal' 'qt5-webkit' 'desktop-file-utils' 'gtk-update-icon-cache')
+makedepends=('qt5-tools' 'git')
+install="$pkgname.install"
+source=("git+https://github.com/openstreetmap/${_pkgname}.git")
+md5sums=('SKIP')
+provides=("$_pkgname")
+conflicts=("$_pkgname")
+
+pkgver() {
+ cd "$_pkgname"
+ git describe --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
+}
+
+build() {
+ cd "$_pkgname"
+ lrelease-qt5 src/src.pro
+ qmake-qt5 -r PREFIX='/usr'
+ make release
+}
+
+package() {
+ cd "$_pkgname"
+ make INSTALL_ROOT="$pkgdir" install
+}
diff --git a/merkaartor-git.install b/merkaartor-git.install
new file mode 100644
index 00000000000..c317fbaca44
--- /dev/null
+++ b/merkaartor-git.install
@@ -0,0 +1,12 @@
+post_install() {
+ update-desktop-database -q
+ gtk-update-icon-cache -q -t -f usr/share/icons/hicolor
+}
+
+post_upgrade() {
+ post_install
+}
+
+post_remove() {
+ post_install
+}