[arch-commits] Commit in gmt/repos (2 files)

Bruno Pagani archange at gemini.archlinux.org
Tue Jun 28 00:06:43 UTC 2022


    Date: Tuesday, June 28, 2022 @ 00:06:43
  Author: archange
Revision: 1239791

archrelease: copy trunk to community-staging-x86_64

Added:
  gmt/repos/community-staging-x86_64/
  gmt/repos/community-staging-x86_64/PKGBUILD
    (from rev 1239790, gmt/trunk/PKGBUILD)

----------+
 PKGBUILD |   49 +++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 49 insertions(+)

Copied: gmt/repos/community-staging-x86_64/PKGBUILD (from rev 1239790, gmt/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2022-06-28 00:06:43 UTC (rev 1239791)
@@ -0,0 +1,49 @@
+# Maintainer: Bruno Pagani <archange at archlinux.org>
+
+pkgbase=gmt
+pkgname=(gmt gmt-doc)
+pkgver=6.4.0
+pkgrel=1
+pkgdesc="Generic Mapping Tools for manipulating and plotting geographic and cartesian data"
+arch=(x86_64)
+url="https://www.generic-mapping-tools.org"
+license=(LGPL)
+makedepends=(cmake blas curl ffmpeg fftw gdal geos ghostscript graphicsmagick lapack openmp netcdf pcre zlib)
+source=(https://github.com/GenericMappingTools/gmt/releases/download/${pkgver}/${pkgname}-${pkgver}-src.tar.xz)
+sha256sums=('b46effe59cf96f50c6ef6b031863310d819e63b2ed1aa873f94d70c619490672')
+
+build() {
+  cmake -B build -S ${pkgname}-${pkgver} \
+    -DCMAKE_BUILD_TYPE=Release \
+    -DCMAKE_INSTALL_PREFIX=/usr \
+    -DGMT_LIBDIR=lib \
+    -DGMT_DATADIR=share/gmt \
+    -DGMT_MANDIR=share/man \
+    -DGMT_DOCDIR=share/doc/gmt \
+    -DGMT_ENABLE_OPENMP=ON \
+    -DGSHHG_ROOT=/usr/share/gmt/coast \
+    -DDCW_ROOT=/usr/share/gmt/dcw \
+    -DCOPY_GSHHG=OFF \
+    -DCOPY_DCW=OFF
+  make -C build
+}
+
+package_gmt() {
+  depends=(blas curl fftw gdal geos lapack openmp netcdf pcre zlib)
+  optdepends=(
+    'gmt-doc: documentation'
+    'ffmpeg: generate movies'
+    'ghostscript: convert PostScript outputs'
+    'graphicsmagick: generate animated GIFs'
+  )
+#    'gmt-coast: coastlines'
+#    'gmt-dcw: digital chart of the world polygon map'
+
+  make -C build DESTDIR="${pkgdir}" install
+  mv "${pkgdir}"/usr/share/doc "${srcdir}"/
+}
+
+package_gmt-doc() {
+  install -d "${pkgdir}"/usr/share/
+  mv doc "${pkgdir}"/usr/share/
+}



More information about the arch-commits mailing list