diff options
author | VinÃcius dos Santos Oliveira | 2015-06-14 02:13:44 -0300 |
---|---|---|
committer | VinÃcius dos Santos Oliveira | 2015-06-14 02:13:44 -0300 |
commit | a308d15cc24b93b23076239744afb8c72194f35e (patch) | |
tree | b9d99980f24f64c95d3140ce8a7191d46d235fe2 | |
download | aur-a308d15cc24b93b23076239744afb8c72194f35e.tar.gz |
Genesis commit
-rw-r--r-- | .SRCINFO | 22 | ||||
-rw-r--r-- | PKGBUILD | 43 |
2 files changed, 65 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..864f346dfd04 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,22 @@ +# Generated by makepkg 4.2.1 +# Thu May 7 21:22:13 UTC 2015 +pkgbase = mingw-w64-geographiclib + 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. + pkgver = 1.42 + pkgrel = 1 + url = http://geographiclib.sourceforge.net/ + arch = any + license = custom + makedepends = mingw-w64-gcc + makedepends = mingw-w64-cmake + depends = mingw-w64-crt + provides = mingw-w64-geographiclib-static + conflicts = mingw-w64-geographiclib-static + options = !strip + options = !buildflags + options = staticlibs + source = http://downloads.sourceforge.net/project/geographiclib/distrib/GeographicLib-1.42.tar.gz + md5sums = 114a334765b9c416a2de3dfc72c22d6d + +pkgname = mingw-w64-geographiclib + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..84efcfdaaf8e --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,43 @@ +pkgname=mingw-w64-geographiclib +_pkgname=GeographicLib +pkgver=1.42 +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=(any) +url="http://geographiclib.sourceforge.net/" +license=("custom") # MIT/X11 +makedepends=(mingw-w64-gcc + mingw-w64-cmake) +depends=(mingw-w64-crt) +options=(!strip !buildflags staticlibs) +source=("http://downloads.sourceforge.net/project/geographiclib/distrib/${_pkgname}-${pkgver}.tar.gz") +conflicts=(mingw-w64-geographiclib-static) +provides=(mingw-w64-geographiclib-static) +md5sums=('114a334765b9c416a2de3dfc72c22d6d') + +_architectures="i686-w64-mingw32 x86_64-w64-mingw32" + +build() { + cd "${srcdir}/${_pkgname}-${pkgver}" + for _arch in ${_architectures}; do + unset LDFLAGS + mkdir "build-${_arch}" && pushd "build-${_arch}" + ${_arch}-cmake \ + -DCMAKE_BUILD_TYPE=Release \ + -DGEOGRAPHICLIB_DOCUMENTATION=0 \ + .. + make + popd + done +} + +package() { + for _arch in ${_architectures}; do + cd "${srcdir}/${_pkgname}-${pkgver}/build-${_arch}" + make DESTDIR="${pkgdir}" install + find "$pkgdir/usr/${_arch}" -name '*.exe' -o -name '*.bat' -o -name '*.def' -o -name '*.exp' | xargs -rtl1 rm + find "$pkgdir/usr/${_arch}" -name '*.dll' | xargs -rtl1 ${_arch}-strip --strip-unneeded + find "$pkgdir/usr/${_arch}" -name '*.a' -o -name '*.dll' | xargs -rtl1 ${_arch}-strip -g + rm -r "$pkgdir/usr/${_arch}/doc" "$pkgdir/usr/${_arch}/matlab" "$pkgdir/usr/${_arch}/python" + done +} |