blob: 68299612485f83be17dcab2f323f56c1e40542e6 (
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
|
# Maintainer: Pavel Ruzicka <rossetti at seznam dot cz>
# Contributor: Alexandre Petitjean <alpetitjean_gmail dot_com>
pkgname=geographiclib
pkgver=2.7
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="https://github.com/geographiclib/geographiclib"
license=('MIT')
depends=('bash')
makedepends=('gcc' 'make' 'cmake')
options=('staticlibs' '!debug')
source=("$pkgname-$pkgver.tar.gz::https://github.com/geographiclib/geographiclib/archive/v${pkgver}.tar.gz")
sha256sums=('78d77cc8216843b78d14b41970ed9de3dedc34b9cd50ad84af2849c63a41eff8')
install=geographiclib.install
build() {
cd "${srcdir}/${pkgname}-${pkgver}"
cmake ./ \
-DCMAKE_INSTALL_PREFIX=/usr \
-DBUILD_BOTH_LIBS=ON
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
}
|