From b83ec252e9b3f3cf7d672790283dafdd8bf264b7 Mon Sep 17 00:00:00 2001 From: Anton Afanasyev Date: Wed, 8 May 2019 00:29:30 -0700 Subject: [PATCH] New package: GoLand-2019.1.3 --- srcpkgs/GoLand/INSTALL.msg | 2 ++ srcpkgs/GoLand/template | 57 ++++++++++++++++++++++++++++++++++++++ srcpkgs/GoLand/update | 2 ++ 3 files changed, 61 insertions(+) create mode 100644 srcpkgs/GoLand/INSTALL.msg create mode 100644 srcpkgs/GoLand/template create mode 100644 srcpkgs/GoLand/update diff --git a/srcpkgs/GoLand/INSTALL.msg b/srcpkgs/GoLand/INSTALL.msg new file mode 100644 index 00000000000..0dbec18343d --- /dev/null +++ b/srcpkgs/GoLand/INSTALL.msg @@ -0,0 +1,2 @@ +GoLand has the following optional dependencies: + libdbusmenu-glib: For global menu support diff --git a/srcpkgs/GoLand/template b/srcpkgs/GoLand/template new file mode 100644 index 00000000000..cebfb255168 --- /dev/null +++ b/srcpkgs/GoLand/template @@ -0,0 +1,57 @@ +# Template file for 'GoLand' +pkgname=GoLand +version=2019.1.3 +revision=1 +archs="i686 x86_64" +depends="virtual?java-environment" +short_desc="Cross-platform IDE built specially for Go developers" +maintainer="Anton Afanasyev " +license="custom:Commercial" +homepage="https://www.jetbrains.com/go" +distfiles="https://download.jetbrains.com/go/goland-${version}.tar.gz" +checksum=b0e22be860ead904c88595f005d5fe2b0fea310c15a1d8551372b5c336d1895b +repository=nonfree +restricted=yes +nopie=yes + +post_extract() { + # Remove files for other CPU architectures + rm -rf bin/fsnotifier-arm + rm -rf lib/pty4j-native/linux/ppc64le + + case "$XBPS_TARGET_MACHINE" in + x86_64) + rm -rf bin/fsnotifier + rm -rf bin/goland.vmoptions + rm -rf bin/libyjpagent-linux.so + rm -rf lib/pty4j-native/linux/x86 + ;; + i686) + rm -rf bin/fsnotifier64 + rm -rf bin/goland64.vmoptions + rm -rf bin/libyjpagent-linux64.so + rm -rf lib/pty4j-native/linux/x86_64 + ;; + esac +} + +do_install() { + TARGET_PATH="usr/lib/${pkgname}" + LICENSE_PATH="usr/share/licenses/${pkgname}" + + vmkdir usr/bin + vmkdir ${TARGET_PATH} + vmkdir ${LICENSE_PATH} + + # Ideally vlicense should be called here, but vcopy is more terse. + vcopy license/* ${LICENSE_PATH} + + vcopy bin ${TARGET_PATH} + vcopy help ${TARGET_PATH} + vcopy lib ${TARGET_PATH} + vcopy plugins ${TARGET_PATH} + vcopy product-info.json ${TARGET_PATH} + vcopy build.txt ${TARGET_PATH} + + ln -sf /${TARGET_PATH}/bin/goland.sh ${DESTDIR}/usr/bin/${pkgname} +} diff --git a/srcpkgs/GoLand/update b/srcpkgs/GoLand/update new file mode 100644 index 00000000000..52dc447c59e --- /dev/null +++ b/srcpkgs/GoLand/update @@ -0,0 +1,2 @@ +pattern="goland-\K[\d.]+(?=\.tar)" +site="https://data.services.jetbrains.com/products/releases?code=GO&latest=true&type=release"