summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 3b09e312a817a2267da40ab36a48dd71c48a6eba (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
37
# Maintainer: Robert Manner <the_manni at users.sf.net>
# The recipe is from manjaro with minor changes. Thanks for the original work!

pkgname=osmin
pkgver=1.12.2
pkgrel=1
pkgdesc="Satellite Navigator & Tracker On-Road/Off-Road for Mobile"
arch=('x86_64' 'aarch64')
url="https://github.com/janbar/osmin"
license=('GPL3')
depends=('openmp' 'qt5-graphicaleffects' 'qt5-location' 'qt5-multimedia' 'qt5-quickcontrols2' 'qt5-sensors' 'qt5-svg' 'qt5-wayland' 'qt5-remoteobjects')
makedepends=('clang' 'cmake' 'double-conversion' 'git' 'glib2' 'md4c' 'tslib' 'xcb-util-image' 'xcb-util-keysyms' 'xdg-utils')
source=( "git+https://github.com/janbar/osmin.git" )
sha256sums=('SKIP')

prepare() {
  cd "$pkgname"
  git checkout "$pkgver"
  git submodule init
  git submodule update
  mkdir -p build
}

build() {
  cd "$pkgname"
  cmake -B build -DCMAKE_INSTALL_PREFIX=/usr \
    -DBUILD_DEVICE_MOBILE=ON \
    -DCMAKE_C_COMPILER=/usr/bin/clang \
    -DCMAKE_CXX_COMPILER=/usr/bin/clang++ \
    -DCMAKE_BUILD_TYPE=Release . 
  cmake --build build/
}

package() {
  cd "$pkgname/build"
  make DESTDIR="$pkgdir/" install
}