summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 00b00bbcfeaa4f14da16b1883969e8cdd74bb1d1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# Maintainer: Anatol Pomozov

pkgname=omim-git
pkgver=r26171.b378c80fe3
pkgrel=1
pkgdesc='Offline OpenStreetMap maps'
arch=(i686 x86_64)
url='http://maps.me/en/home'
license=(Apache)
depends=(qt5-base qt5-webengine)
makedepends=(boost cmake clang git ninja)
source=(git://github.com/mapsme/omim)
sha1sums=('SKIP')

pkgver() {
  cd omim
  echo r$(git rev-list --count master).$(git rev-parse --short master)
}

prepare() {
  cd omim
  git submodule update --init --recursive
}

build() {
  cd omim
  echo | ./configure.sh
  cmake -GNinja .
  ninja
}

package() {
  cd omim
  DESTDIR="${pkgdir}" ninja install
  install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}