blob: aa9bde44685cb712aab7f87f1dcee60f726f2733 (
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
38
39
40
41
42
43
44
|
# Maintainer: ahmetlii
pkgname='organicmaps-git'
pkgver=2024.06.19_3
pkgrel=1
pkgdesc='A free offline maps app for travelers, tourists, hikers, and cyclists based on top of crowd-sourced OpenStreetMap data'
arch=("x86_64" "aarch64" "riscv64")
depends=("cmake>=3.22.1" "mesa" "libglvnd" "libc++" "freetype2" "sqlite" "qt6-base" "icu" "clang" "ninja" "python3" "qt6-svg" "qt6-positioning")
optdepends=("ccache: faster compilation" "qt6-wayland: for Wayland users")
makedepends=("git" "git-lfs" "gendesk" "libxml2" "jq")
license=("Apache")
url="https://github.com/organicmaps/organicmaps"
conflicts=("${pkgname%-git}-bin")
prepare() {
if [ ! -e ./organicmaps-git ]
then
git clone --recurse-submodules --depth=1 https://github.com/organicmaps/organicmaps.git ./organicmaps-git
cd $pkgname
else
cd $pkgname
git pull
fi
bash ./configure.sh
}
pkgver() {
cd $pkgname
xmllint --xpath "string(//releases/release/@version)" "${srcdir}/${pkgname}/packaging/app.organicmaps.desktop.metainfo.xml" | sed -r 's/-/_/g'
}
build() {
$srcdir/$pkgname/tools/unix/build_omim.sh -n 1 -r desktop #pass option -DUNITY_DISABLE=1 if running into free memory issues, remove option -n 1 if not having problems with multi-core compiling
}
package() {
install -dm755 "$pkgdir/usr/share/${pkgname%-git}"
cp -r "$srcdir/$pkgname/data" "$pkgdir/usr/share/${pkgname%-git}"
install -dm777 "$pkgdir/usr/share/organicmaps/data/$(jq .v $srcdir/$pkgname/data/countries.txt)"
install -Dm644 "$srcdir/omim-build-release/OMaps.app/Contents/Resources/mac.icns" "$pkgdir/usr/share/pixmaps/${pkgname%-git}.png"
gendesk -f --pkgname "$pkgname" --pkgdesc "$pkgdesc" --exec "/usr/bin/OMaps --data_path=/usr/share/${pkgname%-git}/data" --name "OrganicMaps" --icon="/usr/share/pixmaps/${pkgname%-git}.png" --categories="Utility;Maps;Navigation" --startupnotify=true
install -Dm755 "$srcdir/omim-build-release/OMaps" "$pkgdir/usr/bin/OMaps"
install -Dm644 "organicmaps.desktop" -t "$pkgdir/usr/share/applications"
}
|