Skip to content

Instantly share code, notes, and snippets.

@dbrgn
Created April 29, 2020 11:43
Show Gist options
  • Save dbrgn/b7f7f219604d3535041b7fb78c3c83fc to your computer and use it in GitHub Desktop.
Save dbrgn/b7f7f219604d3535041b7fb78c3c83fc to your computer and use it in GitHub Desktop.
jcryptool-0.9.10-0
diff --git PKGBUILD PKGBUILD
index 15a4390..eeed273 100644
--- PKGBUILD
+++ PKGBUILD
@@ -2,12 +2,13 @@
# Contributor: Michael Düll <[email protected]>
# Contributor: sancspi <sancospi [at] gmail.com>
# Contributor: tze <[email protected]>
+# Contributor: Danilo <aur ät dbrgn döt ch>
pkgname=jcryptool
-pkgver=0.9.9
-pkgrel=3
+pkgver=0.9.10
+pkgrel=0
pkgdesc="e-learning application for applying and analysing cryptographic algorithms"
-arch=('i686' 'x86_64')
+arch=('x86_64')
url="https://www.cryptool.org/en/jcryptool"
license=('EPL')
depends=('java-runtime' 'libxext' 'libxrender' 'fontconfig')
@@ -19,10 +20,9 @@ source=('jcryptool.desktop'
"jcryptool-48.png::${_iconsrc}48x48.png"
"jcryptool-128.png::${_iconsrc}128x128.png"
"jcryptool-256.png::${_iconsrc}256x256.png"
- "jcryptool-512.png::${_iconsrc}512x512.png")
-source_i686=("https://www.cryptool.org/jctdownload/Builds/downloads/stable/${pkgname}-${pkgver}-linux.gtk.x86.tar.gz")
-source_x86_64=("https://www.cryptool.org/jctdownload/Builds/downloads/stable/${pkgname}-${pkgver}-linux.gtk.x86_64.tar.gz")
-noextract=("${pkgname}-${pkgver}-linux.gtk.x86.tar.gz" "${pkgname}-${pkgver}-linux.gtk.x86_64.tar.gz")
+ "jcryptool-512.png::${_iconsrc}512x512.png"
+ "https://www.cryptool.org/jctdownload/Builds/downloads/stable/${pkgname}-${pkgver}-linux.gtk.x86_64.tar.gz")
+noextract=("${pkgname}-${pkgver}-linux.gtk.x86_64.tar.gz")
sha512sums=('4b08c526016f27fa78bdcbe0f499236757c9e14e0548da8736d99b0d6f3e85fa7f84ac27b7f4922b2064802e92ec0e508848fb327a519b55f49bc5a0a9bda5e8'
'02c728049ff612f4c77575aa557850d826fbf40b09e885a9de6e80429020b742f7193d7e0e572dff21a6bf091006f7d8fa7c377ea68b96ac01a60384b1dd1aff'
'3df55b87975dc5ed5b475fc2cf9c55d21b29d1ec6ef34b8773b7e9c72ff39225c0ab6c34464b04ea57dd5b4d856d63686d78e0741c3f3a1300e276192c72a4c4'
@@ -30,20 +30,17 @@ sha512sums=('4b08c526016f27fa78bdcbe0f499236757c9e14e0548da8736d99b0d6f3e85fa7f8
'45f642f77a0351f029f81c976aee322d165f38da3e10c94d3f8e29e87afe5831bb3cd5b276a8a20518782b1f9e73d4a9c40b2d52b465d95fd19bd2b6fdce6d52'
'2515930d70709955f920d2c587c9363b3b36467d89b84fa961e65c943e9dd4841f53d47db12599876e722a7f402a12639934fb41548c4bb7e191450aa67598ac'
'27bbfbce3d38f7ebbaa3e00d0f15626c9598fccef3d080e3ee3f20ec5de41c1d137d6dd0f2fcc605532fb5dd0615108f3d6ee098ad25be3ec35f765cb50fa1ea'
- '4b638f8df703fe670bc2f3b3b2d719249841e9c08665aece21b4bddaa8197ca06775799d44c6dcb6fbb74c3c8b858bd97f751c59478c17b558accec430a53c8e')
-sha512sums_i686=('e2a68ac69f19424f4e8c5079dde1d7f6fad9efefc2179cd59fe5acd6690b55afb55e5b39233bd389d6dbd477beaf1b3fb3f57690b3cb59c8363d62c77410a394')
-sha512sums_x86_64=('d05787f704c2cb3cbdac6b1b6eaf9c57f386eaae40039e947e2a1d37279d26dafeea8ac80c73cf98aae5fb534a550a0208539e085fcc6df3180080a2977af800')
-
-[[ $CARCH = x86_64 ]] && _arch=$CARCH || _arch=x86
+ '4b638f8df703fe670bc2f3b3b2d719249841e9c08665aece21b4bddaa8197ca06775799d44c6dcb6fbb74c3c8b858bd97f751c59478c17b558accec430a53c8e'
+ '0d606ea6859880fe2ef2ad0f9a66027e57ad3250109317e466b32358da80eeadd8c86b00cdc0f7b5aa1e2eb9a374a83b0134845409cdf45ce9f335283fa1b479')
package() {
mkdir -p "${pkgdir}"/{opt,usr/bin}
- bsdtar -xf ${pkgname}-${pkgver}-linux.gtk.${_arch}.tar.gz -C "${pkgdir}"/opt
+ bsdtar -xf ${pkgname}-${pkgver}-linux.gtk.x86_64.tar.gz -C "${pkgdir}"/opt
ln -s /opt/jcryptool/JCrypTool "${pkgdir}"/usr/bin/jcryptool
- install -Dm644 ${pkgname}.desktop "${pkgdir}"/usr/share/applications/${pkgname}.desktop
+ install -Dm644 "${srcdir}/${pkgname}.desktop" "${pkgdir}"/usr/share/applications/${pkgname}.desktop
for _pic in 16 24 32 48 128 256 512; do
- install -Dm644 jcryptool-${_pic}.png "${pkgdir}"/usr/share/icons/hicolor/${_pic}x${_pic}/apps/${pkgname}.png
+ install -Dm644 "${srcdir}/jcryptool-${_pic}.png" "${pkgdir}"/usr/share/icons/hicolor/${_pic}x${_pic}/apps/${pkgname}.png
done
}
# Maintainer: Quey-Liang Kao <[email protected]>
# Contributor: Michael Düll <[email protected]>
# Contributor: sancspi <sancospi [at] gmail.com>
# Contributor: tze <[email protected]>
# Contributor: Danilo <aur ät dbrgn döt ch>
pkgname=jcryptool
pkgver=0.9.10
pkgrel=0
pkgdesc="e-learning application for applying and analysing cryptographic algorithms"
arch=('x86_64')
url="https://www.cryptool.org/en/jcryptool"
license=('EPL')
depends=('java-runtime' 'libxext' 'libxrender' 'fontconfig')
_iconsrc='https://github.com/jcryptool/doc/raw/bfc66c1e952809edada1936dc5122f45400170de/Graphics/Icons/png/JCT_Icon_png_'
source=('jcryptool.desktop'
"jcryptool-16.png::${_iconsrc}16x16.png"
"jcryptool-24.png::${_iconsrc}24x24.png"
"jcryptool-32.png::${_iconsrc}32x32.png"
"jcryptool-48.png::${_iconsrc}48x48.png"
"jcryptool-128.png::${_iconsrc}128x128.png"
"jcryptool-256.png::${_iconsrc}256x256.png"
"jcryptool-512.png::${_iconsrc}512x512.png"
"https://www.cryptool.org/jctdownload/Builds/downloads/stable/${pkgname}-${pkgver}-linux.gtk.x86_64.tar.gz")
noextract=("${pkgname}-${pkgver}-linux.gtk.x86_64.tar.gz")
sha512sums=('4b08c526016f27fa78bdcbe0f499236757c9e14e0548da8736d99b0d6f3e85fa7f84ac27b7f4922b2064802e92ec0e508848fb327a519b55f49bc5a0a9bda5e8'
'02c728049ff612f4c77575aa557850d826fbf40b09e885a9de6e80429020b742f7193d7e0e572dff21a6bf091006f7d8fa7c377ea68b96ac01a60384b1dd1aff'
'3df55b87975dc5ed5b475fc2cf9c55d21b29d1ec6ef34b8773b7e9c72ff39225c0ab6c34464b04ea57dd5b4d856d63686d78e0741c3f3a1300e276192c72a4c4'
'1501993e1e992a6bb8b6d8ab7f8c072bc5f73917b3b51d82dd2b0f4da8036efa96098d703e36886bc2170fc51e56714a8999bcc88afa51b23b496c5eaa101b17'
'45f642f77a0351f029f81c976aee322d165f38da3e10c94d3f8e29e87afe5831bb3cd5b276a8a20518782b1f9e73d4a9c40b2d52b465d95fd19bd2b6fdce6d52'
'2515930d70709955f920d2c587c9363b3b36467d89b84fa961e65c943e9dd4841f53d47db12599876e722a7f402a12639934fb41548c4bb7e191450aa67598ac'
'27bbfbce3d38f7ebbaa3e00d0f15626c9598fccef3d080e3ee3f20ec5de41c1d137d6dd0f2fcc605532fb5dd0615108f3d6ee098ad25be3ec35f765cb50fa1ea'
'4b638f8df703fe670bc2f3b3b2d719249841e9c08665aece21b4bddaa8197ca06775799d44c6dcb6fbb74c3c8b858bd97f751c59478c17b558accec430a53c8e'
'0d606ea6859880fe2ef2ad0f9a66027e57ad3250109317e466b32358da80eeadd8c86b00cdc0f7b5aa1e2eb9a374a83b0134845409cdf45ce9f335283fa1b479')
package() {
mkdir -p "${pkgdir}"/{opt,usr/bin}
bsdtar -xf ${pkgname}-${pkgver}-linux.gtk.x86_64.tar.gz -C "${pkgdir}"/opt
ln -s /opt/jcryptool/JCrypTool "${pkgdir}"/usr/bin/jcryptool
install -Dm644 "${srcdir}/${pkgname}.desktop" "${pkgdir}"/usr/share/applications/${pkgname}.desktop
for _pic in 16 24 32 48 128 256 512; do
install -Dm644 "${srcdir}/jcryptool-${_pic}.png" "${pkgdir}"/usr/share/icons/hicolor/${_pic}x${_pic}/apps/${pkgname}.png
done
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment