# Maintainer: Pavel Ruzicka # Contributor: Alexandre Petitjean pkgname=geographiclib _pkgname=GeographicLib pkgver=1.50 pkgrel=1 pkgdesc="Set of C++ classes for conversions between geographic, UTM, UPS, MGRS, geocentric, and local cartesian coordinates, for gravity, geoid height, and geomagnetic field calculations and for solving geodesic problems. Geotrans replacement." arch=('i686' 'x86_64') url="http://geographiclib.sourceforge.io/" license=('custom') # MIT/X11 depends=('bash') makedepends=('gcc' 'make' 'cmake') source=(http://downloads.sourceforge.net/project/geographiclib/distrib/${_pkgname}-${pkgver}.tar.gz) md5sums=('5d9627f6832192fededc6011c44cc1c6') install=geographiclib.install build() { cd "${srcdir}/${_pkgname}-${pkgver}" cmake ./ \ -DCMAKE_INSTALL_PREFIX=/usr \ -DGEOGRAPHICLIB_EXAMPLES=0 \ -DGEOGRAPHICLIB_DOCUMENTATION=0 make } package() { cd "${srcdir}/${_pkgname}-${pkgver}" make DESTDIR="${pkgdir}" install install -D -m644 LICENSE.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" # move scripts from /usr/sbin to /usr/bin - due to pacman >= 4.2 directory symlink handling mv ${pkgdir}/usr/sbin/* ${pkgdir}/usr/bin rm -r ${pkgdir}/usr/sbin }