summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorralismark2019-01-28 12:23:32 +1100
committerralismark2019-01-28 12:23:32 +1100
commit56557a527f66629797d34a4df833260e1a9f747f (patch)
tree009f46577f94029ea9172c41ad1c0b0b78e8f53b
downloadaur-56557a527f66629797d34a4df833260e1a9f747f.tar.gz
Initial 2.1.0-1
-rw-r--r--.SRCINFO29
-rw-r--r--PKGBUILD56
-rw-r--r--gplates.desktop8
-rw-r--r--icon.pngbin0 -> 23191 bytes
-rw-r--r--no-ansi.patch12
5 files changed, 105 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..4d18de7933f
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,29 @@
+pkgbase = gplates
+ pkgdesc = Desktop software for the interactive visualisation of plate-tectonics
+ pkgver = 2.1.0
+ pkgrel = 1
+ url = https://www.gplates.org/
+ arch = x86_64
+ license = GPL
+ makedepends = cmake
+ makedepends = glu
+ makedepends = glew
+ makedepends = python2
+ makedepends = boost
+ makedepends = mesa
+ makedepends = gdal
+ makedepends = cgal
+ makedepends = proj
+ depends = qt4
+ depends = qwt-qt4
+ source = https://downloads.sourceforge.net/project/gplates/gplates/2.1/gplates-2.1.0-unixsrc.tar.bz2
+ source = no-ansi.patch
+ source = icon.png
+ source = gplates.desktop
+ md5sums = 770758823ac480e40213a5b284d273fc
+ md5sums = 57f9fb5b981456bdc874094d35488763
+ md5sums = 938ef5a002905872a633665637a45d77
+ md5sums = 1127c6a17abfa7500280fd09ce475a15
+
+pkgname = gplates
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..d1fd2a33a3a
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,56 @@
+# Maintainer: Timmy Yao <timmy.yao@outlook.com.au>
+pkgname=gplates
+pkgver=2.1.0
+pkgrel=1
+pkgdesc="Desktop software for the interactive visualisation of plate-tectonics"
+arch=(x86_64)
+url="https://www.gplates.org/"
+license=('GPL')
+depends=(qt4 qwt-qt4)
+makedepends=(cmake glu glew python2 boost mesa gdal cgal proj)
+source=("https://downloads.sourceforge.net/project/gplates/gplates/2.1/gplates-$pkgver-unixsrc.tar.bz2"
+ "no-ansi.patch"
+ "icon.png"
+ "gplates.desktop")
+md5sums=('770758823ac480e40213a5b284d273fc'
+ '57f9fb5b981456bdc874094d35488763'
+ '938ef5a002905872a633665637a45d77'
+ '1127c6a17abfa7500280fd09ce475a15')
+
+prepare() {
+ cd "$srcdir/$pkgname-$pkgver"
+ patch -Np2 -i "$srcdir/no-ansi.patch"
+}
+
+build() {
+ cd "$srcdir/$pkgname-$pkgver"
+ QTDIR=/usr/lib/qt4 cmake \
+ -DQT_QMAKE_EXECUTABLE=/usr/lib/qt4/bin/qmake \
+ -DQT_UIC_EXECUTABLE=/usr/lib/qt4/bin/uic \
+ -DQT_MOC_EXECUTABLE=/usr/lib/qt4/bin/moc \
+ -DQT_HEADERS_DIR=/usr/include/qt4 \
+ -DQT_QTCORE_INCLUDE_DIR:PATH=/usr/include/qt4/QtCore \
+ -DQT_QTGUI_INCLUDE_DIR:PATH=/usr/include/qt4/QtGui \
+ -DQT_QTNETWORK_INCLUDE_DIR:PATH=/usr/include/qt4/QtNetwork \
+ -DQT_QTOPENGL_INCLUDE_DIR:PATH=/usr/include/qt4/QtOpenGL \
+ -DQT_QTSQL_INCLUDE_DIR:PATH=/usr/include/qt4/QtSql \
+ -DQT_QTSVG_INCLUDE_DIR:PATH=/usr/include/qt4/QtSvg \
+ -DQT_QTTEST_INCLUDE_DIR:PATH=/usr/include/qt4/QtTest \
+ -DQT_QTXMLPATTERNS_INCLUDE_DIR:PATH=/usr/include/qt4/QtXmlPatterns \
+ -DQT_QTXML_INCLUDE_DIR:PATH=/usr/include/qt4/QtXml \
+ -DQWT_INCLUDE_DIR:PATH=/usr/include/qwt-qt4 \
+ -DQWT_LIBRARY:PATH=/usr/lib/libqwt-qt4.so \
+ -DCMAKE_INSTALL_PREFIX="/usr/" \
+ -DCMAKE_BUILD_TYPE=Release \
+ .
+ make
+}
+
+package() {
+ cd "$srcdir/$pkgname-$pkgver"
+ make DESTDIR="$pkgdir/" install
+
+ install "${srcdir}/icon.png" -t "${pkgdir}/usr/share/${pkgname}"
+ install -Dm644 "${srcdir}/gplates.desktop" -t "${pkgdir}/usr/share/applications"
+}
+
diff --git a/gplates.desktop b/gplates.desktop
new file mode 100644
index 00000000000..47d0229a353
--- /dev/null
+++ b/gplates.desktop
@@ -0,0 +1,8 @@
+[Desktop Entry]
+Version=1.0
+Type=Application
+Terminal=false
+Exec=/usr/bin/gplates
+Name=GPlates
+Comment=Interactive visualisation of plate-tectonics
+Icon=/usr/share/gplates/icon.png
diff --git a/icon.png b/icon.png
new file mode 100644
index 00000000000..204b9ad985a
--- /dev/null
+++ b/icon.png
Binary files differ
diff --git a/no-ansi.patch b/no-ansi.patch
new file mode 100644
index 00000000000..7bd6964771f
--- /dev/null
+++ b/no-ansi.patch
@@ -0,0 +1,12 @@
+diff '--color=auto' -ura --color src.orig/gplates-2.1.0/cmake/modules/CompileOptionsCPlusPlus.cmake src/gplates-2.1.0/cmake/modules/CompileOptionsCPlusPlus.cmake
+--- src.orig/gplates-2.1.0/cmake/modules/CompileOptionsCPlusPlus.cmake 2019-01-28 01:17:02.994296282 +1100
++++ src/gplates-2.1.0/cmake/modules/CompileOptionsCPlusPlus.cmake 2019-01-28 01:20:15.254774332 +1100
+@@ -123,7 +123,7 @@
+ set(warnings_flags "${warnings_flags} ${warning}")
+ endforeach(warning ${warnings_flags_list})
+
+- set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -ansi -fno-strict-aliasing")
++ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fno-strict-aliasing")
+
+ # Flags common to all build types.
+ if (GPLATES_PUBLIC_RELEASE)