Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

danctnix: osmin: new pkgbuild #516

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
73 changes: 73 additions & 0 deletions PKGBUILDS/danctnix/osmin/PKGBUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
# Maintainer: Chris Billington <cbillington@emulti.net>
# Contributors: Dan Johansen <strit@manjaro.org>, Ladislav Nesnera

pkgname=osmin
pkgver=1.9.3
pkgrel=1

_commit=914491c391be2ed659071fbc3d15497178306b7a # 1.9.3

pkgdesc="Satellite Navigator & Tracker On-Road/Off-Road for Mobile"
arch=('x86_64' 'aarch64')
url="https://github.com/janbar/osmin"
license=('GPL-3.0')

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=("${pkgname}-${pkgver}.tar.gz::https://github.com/janbar/osmin/archive/refs/tags/$pkgver.tar.gz")

source=( "git+https://github.com/janbar/osmin.git#commit=$_commit") # specific git commit

#source=( "git+https://github.com/janbar/osmin.git") # git master

sha256sums=('SKIP')

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

build() {

cd "$srcdir/$pkgname"

_cmakeoptions="
-DBUILD_DEVICE_MOBILE=ON
-DCMAKE_C_COMPILER=/usr/bin/clang
-DCMAKE_CXX_COMPILER=/usr/bin/clang++
-DCMAKE_INSTALL_PREFIX=/usr"

cmake -B build . $_cmakeoptions

cmake --build build/
}

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