mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-20 20:43:09 -04:00
Signed-off-by: David Roman <davidroman96@gmail.com> Closes: https://github.com/gentoo/guru/pull/79
54 lines
913 B
Bash
54 lines
913 B
Bash
# Copyright 1999-2023 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=8
|
|
|
|
inherit git-r3 xdg cmake
|
|
EGIT_REPO_URI="https://github.com/${PN}/${PN}.git"
|
|
|
|
DESCRIPTION="Offline maps and navigation using OpenStreetMap data"
|
|
HOMEPAGE="https://organicmaps.app"
|
|
|
|
LICENSE="Apache-2.0"
|
|
SLOT="0"
|
|
|
|
DEPEND="sys-devel/clang
|
|
media-libs/freetype
|
|
dev-libs/icu
|
|
sys-libs/libstdc++-v3
|
|
dev-qt/qtcore
|
|
dev-qt/qtpositioning
|
|
dev-qt/qtsvg
|
|
dev-db/sqlite
|
|
sys-libs/zlib[minizip]"
|
|
|
|
PATCHES=(
|
|
"${FILESDIR}/${P}-zlib-compile.patch"
|
|
)
|
|
|
|
src_prepare() {
|
|
eapply_user
|
|
|
|
cmake_src_prepare
|
|
}
|
|
|
|
src_configure() {
|
|
CMAKE_BUILD_TYPE="RelWithDebInfo"
|
|
|
|
local mycmakeargs=(
|
|
-DBUILD_SHARED_LIBS=False
|
|
-DINSTALL_GTEST=off
|
|
)
|
|
|
|
echo | ./configure.sh
|
|
|
|
cmake_src_configure
|
|
}
|
|
|
|
pkg_postinst() {
|
|
xdg_icon_cache_update
|
|
|
|
einfo "For dark mode type in search ?dark"
|
|
einfo "For light mode type in search ?light"
|
|
}
|