pkgname=qmapshack pkgver=1.17.1 _commit=1f009ac0be1d1c2a4c31aa1283f4009e88685d34 pkgrel=4 pkgdesc="Plan your next outdoor trip or to visualize and archive all the GPS recordings, next generation of the QLandkarte GT application" arch=('x86_64') url="https://github.com/Maproom/qmapshack/wiki" license=('GPL') depends=('gdal' 'libdmtx' 'libexif' 'mariadb' 'mesa' 'postgresql-libs' 'shared-mime-info' 'unixodbc' 'glu' 'qt6-webengine' 'proj' 'qt6-5compat' 'routino' 'quazip-qt6') makedepends=('cmake' 'extra-cmake-modules' 'qt6-tools') groups=('utils') #source=("https://github.com/Maproom/qmapshack/archive/V_${pkgver}.tar.gz" source=("https://github.com/kiozen/qmapshack/archive/${_commit}.zip" 'proj.patch' 'quazip.patch') md5sums=('681cd62af736d776405636dda0403ba6' '1a2192dfa8b63fce503a59d6917918a5' 'cbdc25ae8121f347ddfedc10501d589e') prepare() { cd ${pkgname}-${_commit} #patch -p1 -i ${srcdir}/proj.patch #patch -p1 -i ${srcdir}/quazip.patch #sed -i 's|QuaZip-Qt5|QuaZip5|' CMakeLists.txt } build() { cmake -B build -S ${pkgname}-${_commit} \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_BUILD_TYPE=Release cmake --build build } package() { DESTDIR=${pkgdir} cmake --install build install -Dm644 ${pkgname}-${_commit}/LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE }