summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorButui Hu2019-11-08 17:17:48 +0800
committerButui Hu2019-11-08 17:17:48 +0800
commitd311daa3671e73d85e57459239c1bdc049d949be (patch)
tree0791a24b490121644f7c2d45a8bbcbb2aea7ae60
downloadaur-d311daa3671e73d85e57459239c1bdc049d949be.tar.gz
add 3dmeshmetric-bin
A visualization tool based on the VTK library.
-rw-r--r--.SRCINFO17
-rw-r--r--PKGBUILD41
2 files changed, 58 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..fd84faf0858
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,17 @@
+pkgbase = 3dmeshmetric-bin
+ pkgdesc = A visualization tool based on the VTK library.
+ pkgver = 1.4.3
+ pkgrel = 1
+ url = https://www.nitrc.org/projects/meshmetric3d/
+ arch = x86_64
+ license = GPL
+ makedepends = gendesk
+ depends = gcc-libs
+ depends = zlib
+ provides = 3dmeshmetric=1.4.3
+ conflicts = 3dmeshmetric
+ source = 3dmeshmetric-bin-1.4.3.tar::https://www.nitrc.org/frs/download.php/6714/3DMetricTools1.4.3-Linux.tar
+ sha512sums = c62a252b6583fc4ee7d5e92f8538b152aa98baf1ca217d72d0f3ffeb61234e54ef37bed8d1a212c752bbb97c5eff4c28a655a3dfcc0c399b5600352746a4eea3
+
+pkgname = 3dmeshmetric-bin
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..d738b322f5f
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,41 @@
+# Maintainer: Butui Hu <hot123tea123@gmail.com>
+
+pkgname=3dmeshmetric-bin
+_pkgname=3DMetricTools
+pkgver=1.4.3
+pkgrel=1
+pkgdesc="A visualization tool based on the VTK library."
+arch=('x86_64')
+url="https://www.nitrc.org/projects/meshmetric3d/"
+license=('GPL')
+depends=(
+ 'gcc-libs'
+ 'zlib'
+)
+makedepends=('gendesk')
+provides=(3dmeshmetric=${pkgver})
+conflicts=(3dmeshmetric)
+source=(
+ "${pkgname}-${pkgver}.tar::https://www.nitrc.org/frs/download.php/6714/3DMetricTools${pkgver}-Linux.tar"
+)
+sha512sums=('c62a252b6583fc4ee7d5e92f8538b152aa98baf1ca217d72d0f3ffeb61234e54ef37bed8d1a212c752bbb97c5eff4c28a655a3dfcc0c399b5600352746a4eea3')
+
+prepare() {
+ msg2 "Creating desktop file"
+ gendesk -f -n --pkgname ${_pkgname} \
+ --pkgdesc "${pkgdesc}" \
+ --categories "Graphics;MedicalSoftware;Science;" \
+ --icon "${_pkgname}" \
+ --exec "meshMetric"
+}
+
+package() {
+ install -d "${pkgdir}/opt" "${pkgdir}/usr/bin" "${pkgdir}/usr/share/pixmaps"
+ mv "${srcdir}/${_pkgname}${pkgver}-Linux" "${pkgdir}/opt/${_pkgname}"
+ cp "${pkgdir}/opt/${_pkgname}/icons/MeshMetric.png" "${pkgdir}/usr/share/pixmaps/${_pkgname}.png"
+ ln -s /opt/${_pkgname}/meshMetric "${pkgdir}/usr/bin/meshMetric"
+ ln -s /opt/${_pkgname}/ModelToModelDistance "${pkgdir}/usr/bin/ModelToModelDistance"
+ install -Dm644 "${srcdir}/${_pkgname}.desktop" "${pkgdir}/usr/share/applications/${_pkgname}.desktop"
+}
+# vim:set ts=2 sw=2 et:
+