diff options
author | Yves Fischer <yves.fischer@cern.ch> | 2016-04-06 11:12:15 +0200 |
---|---|---|
committer | Yves Fischer <yves.fischer@cern.ch> | 2016-04-06 11:12:15 +0200 |
commit | 2a8ba6c20557ca48ace7c360ab74ba3f297a0c1c (patch) | |
tree | 27c7fa94f6ed1c6e1c2804ecdb591e55856b1598 /packages/xmind/build.gradle | |
parent | 980aa3d7841e0efa6acedc6a758c5728feac23e0 (diff) | |
download | debian-packages-2a8ba6c20557ca48ace7c360ab74ba3f297a0c1c.tar.gz debian-packages-2a8ba6c20557ca48ace7c360ab74ba3f297a0c1c.zip |
add xmind
Diffstat (limited to 'packages/xmind/build.gradle')
-rw-r--r-- | packages/xmind/build.gradle | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/packages/xmind/build.gradle b/packages/xmind/build.gradle new file mode 100644 index 0000000..62e525e --- /dev/null +++ b/packages/xmind/build.gradle @@ -0,0 +1,22 @@ +import org.xapek.yvesf.gradle.DownloadTask + +version '7-update1' + +task download(type: DownloadTask) { + source "http://www.xmind.net/xmind/downloads/xmind-${project.version}-portable.zip" + sha256sum '2823c93178e55ff21d3a75ff2a9d2aa694f50a94a7220207a1ad757660cdf030' +} + +task unpack(type: Copy) { + from zipTree(download.destFile) + into file("${buildDir}/unpacked/dist") + eachFile { FileCopyDetails fcd -> + fcd.path = fcd.path.substring(path.indexOf('/')+1) + } +} +unpack.dependsOn(download) + +ospackage { + into "/opt/${project.name}" + from unpack.outputs.files +} |