summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorpescepalla2019-03-25 20:19:17 +0100
committerpescepalla2019-03-25 20:19:17 +0100
commitf1f2c24aa302493b7d7e0337171c4dc85f3f679f (patch)
tree7fc16d1e0303c328b01948b69011cabdd5235109
parent728205eea490e57583c60f88ec1469a278925726 (diff)
downloadaur-f1f2c24aa302493b7d7e0337171c4dc85f3f679f.tar.gz
forcing java 8 environment
-rw-r--r--.SRCINFO4
-rw-r--r--PKGBUILD2
-rw-r--r--PKGBUILD~69
3 files changed, 71 insertions, 4 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 2fe6a5c1694..222180c8f16 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -6,9 +6,7 @@ pkgbase = cmaptools
arch = x86_64
license = unknown
makedepends = the_silver_searcher
- makedepends = unzip
- makedepends = inetutils
- depends = java-environment
+ depends = java-environment=8
source = http://cmapdownload.ihmc.us/installs/CmapTools/Linux/Linux64CmapTools_v6.03.01_02-07-19.bin
source = installer.properties
source = icon.png
diff --git a/PKGBUILD b/PKGBUILD
index 0318b760626..6d2e389bb68 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -8,7 +8,7 @@ pkgdesc="The IHMC Cmap Tools for concept maps"
arch=('x86_64')
url="http://cmap.ihmc.us/"
license=('unknown')
-depends=('java-environment')
+depends=('java-environment=8')
makedepends=('the_silver_searcher')
source=(http://cmapdownload.ihmc.us/installs/CmapTools/Linux/Linux64CmapTools_$pkgver\_$_pkgdate.bin
diff --git a/PKGBUILD~ b/PKGBUILD~
new file mode 100644
index 00000000000..0318b760626
--- /dev/null
+++ b/PKGBUILD~
@@ -0,0 +1,69 @@
+# Maintainer: Romain Porte <microjoe@microjoe.org>
+
+pkgname=cmaptools
+pkgver=v6.03.01
+_pkgdate=02-07-19
+pkgrel=1
+pkgdesc="The IHMC Cmap Tools for concept maps"
+arch=('x86_64')
+url="http://cmap.ihmc.us/"
+license=('unknown')
+depends=('java-environment')
+makedepends=('the_silver_searcher')
+
+source=(http://cmapdownload.ihmc.us/installs/CmapTools/Linux/Linux64CmapTools_$pkgver\_$_pkgdate.bin
+ installer.properties
+ icon.png
+ cmaptools.desktop
+ cmaptools
+ )
+
+md5sums=('5e7c9557f37bb3510d2fe0d168d1e847'
+ 'a6aa32dfa1a7a5bc5e6dc585e197e002'
+ 'c37998dc8a4703de169283d49a49c40d'
+ '23f9a626c04321284930d6a79b2cf5b1'
+ 'acda9def3e84dd87066530ba187bcd1d'
+ )
+
+
+package() {
+ mkdir -p $pkgdir/opt/cmaptools
+
+ # Start installer in silent mode (see
+ # http://cmap.ihmc.us/docs/cmaptools-console-silent-installation.php for
+ # silent installation instructions)
+ chmod +x Linux64CmapTools_$pkgver\_$_pkgdate.bin
+ ./Linux64CmapTools_$pkgver\_$_pkgdate.bin \
+ -f $PWD/installer.properties \
+ -DUSER_INSTALL_DIR=$pkgdir/opt/cmaptools \
+ -DUSER_SHORTCUTS=$pkgdir/usr/share/applications \
+ || true
+
+ # Remove useless symbolic links
+ rm $pkgdir/opt/cmaptools/Uninstall\ CmapTools
+ rm $pkgdir/opt/cmaptools/CmapTools
+
+ # Remove useless uninstaller
+ rm -r $pkgdir/opt/cmaptools/UninstallerData
+
+ # Copy icon
+ install -Dm644 icon.png $pkgdir/opt/cmaptools/icon.png
+
+ # Copy desktop file
+ install -Dm644 cmaptools.desktop $pkgdir/usr/share/applications/cmaptools.desktop
+
+ # Copy bash executable to path
+ install -Dm755 cmaptools $pkgdir/usr/bin/cmaptools
+
+ # Fix references to $pkgdir because installer is dumb
+ cd $pkgdir
+ ag $pkgdir -l --print0 | xargs -0 sed -i "s=$pkgdir=/opt=g"
+
+ # Remove embedded JRE
+ rm -r $pkgdir/opt/cmaptools/jre
+
+ # Clean file rights
+ find $pkgdir/opt/cmaptools -type d -print0 | xargs -0 chmod 755
+ find $pkgdir/opt/cmaptools -type f -print0 | xargs -0 chmod 644
+ chmod 755 $pkgdir/opt/cmaptools/bin/CmapTools
+}