Skip to content

Commit e1c8c06

Browse files
committed
pkg: danctnix: osmin: new pkgbuild
1 parent ef09f25 commit e1c8c06

File tree

1 file changed

+73
-0
lines changed

1 file changed

+73
-0
lines changed

PKGBUILDS/danctnix/osmin/PKGBUILD

Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
# Maintainer: Chris Billington <[email protected]>
2+
# Contributors: Dan Johansen <[email protected]>, Ladislav Nesnera
3+
4+
pkgname=osmin
5+
pkgver=1.9.3
6+
pkgrel=1
7+
8+
_commit=914491c391be2ed659071fbc3d15497178306b7a # 1.9.3
9+
10+
pkgdesc="Satellite Navigator & Tracker On-Road/Off-Road for Mobile"
11+
arch=('x86_64' 'aarch64')
12+
url="https://github.com/janbar/osmin"
13+
license=('GPL-3.0')
14+
15+
depends=(
16+
'openmp'
17+
'qt5-graphicaleffects'
18+
'qt5-location'
19+
'qt5-multimedia'
20+
'qt5-quickcontrols2'
21+
'qt5-sensors'
22+
'qt5-svg'
23+
'qt5-wayland'
24+
'qt5-remoteobjects'
25+
)
26+
27+
makedepends=(
28+
'clang'
29+
'cmake'
30+
'double-conversion'
31+
'git'
32+
'glib2'
33+
'md4c'
34+
'tslib'
35+
'xcb-util-image'
36+
'xcb-util-keysyms'
37+
'xdg-utils'
38+
)
39+
40+
#source=("${pkgname}-${pkgver}.tar.gz::https://github.com/janbar/osmin/archive/refs/tags/$pkgver.tar.gz")
41+
42+
source=( "git+https://github.com/janbar/osmin.git#commit=$_commit") # specific git commit
43+
44+
#source=( "git+https://github.com/janbar/osmin.git") # git master
45+
46+
sha256sums=('SKIP')
47+
48+
prepare() {
49+
cd "$srcdir/$pkgname"
50+
git submodule init
51+
git submodule update
52+
mkdir -p build
53+
}
54+
55+
build() {
56+
57+
cd "$srcdir/$pkgname"
58+
59+
_cmakeoptions="
60+
-DBUILD_DEVICE_MOBILE=ON
61+
-DCMAKE_C_COMPILER=/usr/bin/clang
62+
-DCMAKE_CXX_COMPILER=/usr/bin/clang++
63+
-DCMAKE_INSTALL_PREFIX=/usr"
64+
65+
cmake -B build . $_cmakeoptions
66+
67+
cmake --build build/
68+
}
69+
70+
package() {
71+
cd "$srcdir/$pkgname/build"
72+
make DESTDIR="$pkgdir/" install
73+
}

0 commit comments

Comments
 (0)