Package request: osmin
GPS Navigator On-Road/Off-Road
https://github.com/janbar/osmin
This is my attempt...
pkgname=osmin
pkgver=1.8.7
pkgrel=0
_libosmscout_version=1.9.2
pkgdesc="GPS Navigator On-Road/Off-Road"
url="https://github.com/janbar/osmin"
arch="all"
license="GPL-3.0-only"
depends=""
makedepends="
cmake
qt5-qtbase-dev
qt5-qtdeclarative-dev
qt5-qtsvg-dev
qt5-qtquickcontrols2-dev
qt5-qtsensors-dev
qt5-qtmultimedia-dev
qt5-qtremoteobjects-dev
qt5-qtlocation-dev
"
options="!check" # no test suite
install=""
subpackages="$pkgname-dev $pkgname-doc"
source="
${pkgname}-${pkgver}.tar.gz::https://github.com/janbar/osmin/archive/refs/tags/${pkgver}.tar.gz
https://github.com/janbar/libosmscout/archive/refs/tags/${pkgname}-${_libosmscout_version}.tar.gz
"
builddir="$srcdir/"
prepare() {
default_prepare
rmdir -v $pkgname-$pkgver/backend/libosmscout
mv -v libosmscout-${pkgname}-${_libosmscout_version} $pkgname-$pkgver/backend/libosmscout
}
build() {
cd $pkgname-$pkgver
if [ "$CBUILD" != "$CHOST" ]; then
CMAKE_CROSSOPTS="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux"
fi
cmake -B build \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib \
-DBUILD_SHARED_LIBS=True \
-DCMAKE_BUILD_TYPE=None \
$CMAKE_CROSSOPTS .
cmake --build build
}
package() {
DESTDIR="$pkgdir" cmake --install build
}
sha512sums="
2e19f7357f1c99d26f32190efc340c6302d90a124b0c78f18320b14331fcd06d1b2488c04ed5e80bcf5a1967d21a455e13b21ae7c82daff3f9ea85eb78b1a314 osmin-1.8.7.tar.gz
88538c15aee8986bbb63e68e3d970763ef5f303ac932f3e439b7ecbcf8e8cf9e958203b639d3e54e1abd068c3267bc5deaec241eeebbcd7e6e61f72484c34f7b osmin-1.9.2.tar.gz
"
I get this error:
[ 98%] Building CXX object CMakeFiles/osmin.dir/moc_rep_servicemessenger_source.cpp.o
[ 98%] Building CXX object CMakeFiles/osmin.dir/moc_rep_servicemessenger_replica.cpp.o
[ 98%] Building CXX object CMakeFiles/osmin.dir/qrc_osmin_controls2_515.cpp.o
[100%] Linking CXX executable osmin
[100%] Built target osmin
>>> osmin: Entering fakeroot...
CMake Error: Error processing file: /home/eloi/repos/aports-eloi/testing/osmin/src/build/cmake_install.cmake
>>> ERROR: osmin*: package failed
>>> ERROR: osmin: rootpkg failed
>>> osmin: Uninstalling dependencies...