summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO19
-rw-r--r--PKGBUILD43
-rw-r--r--cryptomator-vault.xml7
-rw-r--r--cryptomator.desktop9
4 files changed, 56 insertions, 22 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 76eb2872c4f..c8a4561483f 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,21 +1,20 @@
-# Generated by mksrcinfo v8
-# Sun May 15 13:38:17 UTC 2016
pkgbase = cryptomator
pkgdesc = Multiplatform transparent client-side encryption of your files in the cloud.
- pkgver = 1.0.5
+ pkgver = 1.1.0
pkgrel = 1
url = https://cryptomator.org/
arch = any
license = MIT/X Consortium License
- depends = java-runtime
- depends = java-environment
+ makedepends = apache-ant
+ depends = jre8-openjdk
depends = java-openjfx
- optdepends = rng-tools: Entropy generation
- noextract = Cryptomator-1.0.5.jar
- source = https://github.com/cryptomator/cryptomator/releases/download/1.0.5/Cryptomator-1.0.5.jar
+ source = antkit-1.1.0.tar.gz::https://github.com/cryptomator/cryptomator/releases/download/1.1.0/antkit.tar.gz
source = cryptomator.sh
- sha256sums = 6cbfdf09187f44dd1d4b837530416c6feaca5268644c9422ec75304458120e57
+ source = cryptomator.desktop
+ source = cryptomator-vault.xml
+ sha256sums = SKIP
sha256sums = 0bc12ee603ef87536389aeb85bf0afaf8995bae2c9ed826290b2bb0d838a9766
+ sha256sums = 1193f85b545298f6d474c7f17865433f25c73995b00894e0d7d7bc873c696464
+ sha256sums = 78537ead26dcc1488d7fff02f47fce559f70f9bb2d7fa7fa1741ad3cd151bfad
pkgname = cryptomator
-
diff --git a/PKGBUILD b/PKGBUILD
index 365a142a281..0cc3ef718af 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,23 +1,42 @@
# Maintainer: Morten Linderud <morten@linderud.pw>
+# Contributor: Sebastian Stenzel <sebastian.stenzel@gmail.com>
pkgname=cryptomator
-pkgver=1.0.5
+pkgver=1.1.0
pkgrel=1
pkgdesc="Multiplatform transparent client-side encryption of your files in the cloud."
arch=("any")
url="https://cryptomator.org/"
license=('MIT/X Consortium License')
-depends=('java-runtime' 'java-environment' 'java-openjfx')
-optdepends=('rng-tools: Entropy generation')
-source=("https://github.com/cryptomator/cryptomator/releases/download/${pkgver}/Cryptomator-${pkgver}.jar"
- "${pkgname}.sh")
-noextract=("Cryptomator-${pkgver}.jar")
-sha256sums=('6cbfdf09187f44dd1d4b837530416c6feaca5268644c9422ec75304458120e57'
- '0bc12ee603ef87536389aeb85bf0afaf8995bae2c9ed826290b2bb0d838a9766')
-
+depends=('jre8-openjdk' 'java-openjfx')
+makedepends=('apache-ant')
+source=("antkit-${pkgver}.tar.gz::https://github.com/cryptomator/cryptomator/releases/download/${pkgver}/antkit.tar.gz"
+ 'cryptomator.sh'
+ 'cryptomator.desktop'
+ 'cryptomator-vault.xml')
+sha256sums=('SKIP'
+ '0bc12ee603ef87536389aeb85bf0afaf8995bae2c9ed826290b2bb0d838a9766'
+ '1193f85b545298f6d474c7f17865433f25c73995b00894e0d7d7bc873c696464'
+ '78537ead26dcc1488d7fff02f47fce559f70f9bb2d7fa7fa1741ad3cd151bfad')
+build() {
+ export JAVA_HOME=/usr/lib/jvm/default-runtime/
+ ant create-jar
+}
package() {
- install -d "${pkgdir}/usr/share/java/${pkgname}"
- install -D "${srcdir}/Cryptomator-${pkgver}.jar" "${pkgdir}/usr/share/java/$pkgname/cryptomator.jar"
- install -Dm655 "${srcdir}/cryptomator.sh" "${pkgdir}/usr/bin/cryptomator"
+ install -d ${pkgdir}/usr/share/java/${pkgname}
+ install -Dm644 ${srcdir}/libs/*.jar ${pkgdir}/usr/share/java/$pkgname
+ install -Dm644 ${srcdir}/antbuild/Cryptomator-${pkgver}.jar ${pkgdir}/usr/share/java/$pkgname/cryptomator.jar
+ install -Dm755 ${srcdir}/cryptomator.sh ${pkgdir}/usr/bin/cryptomator
+ install -Dm644 ${srcdir}/package/linux/Cryptomator.png ${pkgdir}/usr/share/java/${pkgname}
+ install -Dm644 ${srcdir}/cryptomator-vault.xml ${pkgdir}/usr/share/mime/packages/cryptomator-vault.xml
+ install -Dm644 ${srcdir}/cryptomator.desktop ${pkgdir}/usr/share/applications/cryptomator.desktop
+}
+post_install() {
+ xdg-desktop-menu install --novendor /usr/share/applications/cryptomator.desktop
+ xdg-mime install /usr/share/mime/packages/cryptomator-vault.xml
+}
+pre_remove() {
+ xdg-desktop-menu uninstall --novendor /usr/share/applications/cryptomator.desktop
+ xdg-mime uninstall /usr/share/mime/packages/cryptomator-vault.xml
}
diff --git a/cryptomator-vault.xml b/cryptomator-vault.xml
new file mode 100644
index 00000000000..eeb4bc53724
--- /dev/null
+++ b/cryptomator-vault.xml
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info">
+ <mime-type type="application/x-vnd.cryptomator-vault-metadata">
+ <comment>Cryptomator Vault Metadata</comment>
+ <glob pattern="*.cryptomator"/>
+ </mime-type>
+</mime-info>
diff --git a/cryptomator.desktop b/cryptomator.desktop
new file mode 100644
index 00000000000..088bdc6fd56
--- /dev/null
+++ b/cryptomator.desktop
@@ -0,0 +1,9 @@
+[Desktop Entry]
+Name=Cryptomator
+Comment=Cloud Storage Encryption Utility
+Exec=/usr/bin/cryptomator
+Icon=/usr/share/java/cryptomator/Cryptomator.png
+Terminal=false
+Type=Application
+Categories=Utility
+MimeType=application/x-vnd.cryptomator-vault-metadata