# Maintainer: Beat Jäckle pkgname=tigerjython pkgver=2.37 pkgrel=5 pkgdesc='TigerJython IDE' arch=(x86_64) url='https://www.tigerjython.ch/' license=('custom') depends=( 'java-runtime>=2' ) makedepends=('tar' 'gzip') # https://pixabay.com/de/vectors/fu%C3%9Fabdruck-tier-pelzig-pfote-308794/ source=("https://www.tigerjython.ch/user/pages/download/TigerJython.tar.gz" 'http://jython.tobiaskohn.ch/images/TigerJython_Logo.png') b2sums=('32181780c1b1a86e7e151e01cf0428726f3c7ccd8c27db9d64cac4b03c1b8a0ae8e32fb029e9d32d3d1baf196f6874418d6a394e8b503bc454fdc367bbf2f01e' '4ae37420b11b7dd5e7ceb9c00fb48c6f575d6658b0cb0963e38155e79af5ba0cfaf1d00da8c278a6dcf5ae6615bf86b298dabca3c827fb7c80d1c55302a58dc7') _install_path=/opt prepare() { rm -fr "$pkgname-$pkgver" mv TigerJython/bin "$pkgname-$pkgver" mv TigerJython/Readme.txt "$pkgname-$pkgver" rm -r TigerJython cd "$pkgname-$pkgver" rm -r ./jre find -name ._\* -delete find -name .DS_Store -delete } build() { echo "#!/bin/sh" > "${srcdir}/tigerjython" echo "set -ue" >> "${srcdir}/tigerjython" echo "java -jar ${_install_path}/${pkgname}/tigerjython2.jar \$@" >> "${srcdir}/tigerjython" _desktopfile_path="${srcdir}/tigerjython.desktop" echo "[Desktop Entry]" > ${_desktopfile_path} echo "Name=${pkgdesc}" >> ${_desktopfile_path} echo "Exec=java -jar ${_install_path}/${pkgname}/tigerjython2.jar" >> ${_desktopfile_path} echo "Icon=tigerjython" >> ${_desktopfile_path} echo "Type=Application" >> ${_desktopfile_path} echo "Categories=Education;Science;Math;" >> ${_desktopfile_path} echo "Keywords=science;math;matrix;plotting;" >> ${_desktopfile_path} } package() { install -Ddm755 "${pkgdir}/${_install_path}/${pkgname}/Lib" install -Ddm755 "${pkgdir}/${_install_path}/${pkgname}/TestSamples" install -Dm644 "${srcdir}/$pkgname-$pkgver/tigerjython2"* "${pkgdir}/${_install_path}/${pkgname}/." install -Dm644 "${srcdir}/$pkgname-$pkgver/Lib/"* "${pkgdir}/${_install_path}/${pkgname}/Lib/." install -Dm644 "${srcdir}/$pkgname-$pkgver/TestSamples/"* "${pkgdir}/${_install_path}/${pkgname}/TestSamples/." install -Dm755 "${srcdir}/tigerjython" "${pkgdir}/usr/bin/tigerjython" install -Dm755 "${srcdir}/tigerjython.desktop" "${pkgdir}/usr/share/applications/tigerjython.desktop" install -Dm755 "${srcdir}/../tigerjython.svg" "${pkgdir}/usr/share/icons/hicolor/scalable/apps/tigerjython.svg" }