diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..b08ab49 --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +*/pkg +*/src +*/*_64 diff --git a/arch-pkg/PKGBUILD b/arch-pkg/PKGBUILD new file mode 100644 index 0000000..f1ab2c7 --- /dev/null +++ b/arch-pkg/PKGBUILD @@ -0,0 +1,60 @@ +# Maintainer: Beat Jäckle + +pkgname=tigerjython +pkgver=2.37 +pkgrel=3 +pkgdesc='TigerJython IDE' +arch=(x86_64) +url='https://www.tigerjython.ch/' +license=('custom') +depends=( + 'jre-openjdk>=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" +} diff --git a/arch-pkg/tigerjython-2.37-3-x86_64.pkg.tar.zst b/arch-pkg/tigerjython-2.37-3-x86_64.pkg.tar.zst new file mode 100644 index 0000000..1c2c47b Binary files /dev/null and b/arch-pkg/tigerjython-2.37-3-x86_64.pkg.tar.zst differ diff --git a/arch-pkg/tigerjython.svg b/arch-pkg/tigerjython.svg new file mode 100644 index 0000000..0586c1d --- /dev/null +++ b/arch-pkg/tigerjython.svg @@ -0,0 +1,110 @@ + + + + + + + + + + + + + + + + + + + + + + diff --git a/debian-deb/PKGBUILD b/debian-deb/PKGBUILD new file mode 100644 index 0000000..f1ab2c7 --- /dev/null +++ b/debian-deb/PKGBUILD @@ -0,0 +1,60 @@ +# Maintainer: Beat Jäckle + +pkgname=tigerjython +pkgver=2.37 +pkgrel=3 +pkgdesc='TigerJython IDE' +arch=(x86_64) +url='https://www.tigerjython.ch/' +license=('custom') +depends=( + 'jre-openjdk>=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" +} diff --git a/debian-deb/makedeb.sh b/debian-deb/makedeb.sh new file mode 100644 index 0000000..1dab1f7 --- /dev/null +++ b/debian-deb/makedeb.sh @@ -0,0 +1,33 @@ +#!/bin/bash +set -ue +# Src: +# https://earthly.dev/blog/creating-and-hosting-your-own-deb-packages-and-apt-repo/ + +. PKGBUILD + +srcdir="${PWD}/src" +pkgdir="${PWD}/${pkgname}_${pkgver}-${pkgrel}_${arch}" +rootdir="${PWD}" +mkdir -p "${srcdir}" +cd "${srcdir}" +wget -c https://www.tigerjython.ch/user/pages/download/TigerJython.tar.gz +# if ! [ -f TigerJython.tar.gz ];then wget https://www.tigerjython.ch/user/pages/download/TigerJython.tar.gz;fi +tar -xf TigerJython.tar.gz +prepare + +build + +mkdir -p "${pkgdir}" +cd "${pkgdir}" +package + +mkdir -p ${pkgdir}/DEBIAN +echo "Package: ${pkgname} +Version: ${pkgver} +Maintainer: Beat Jäckle +Depends: default-jre +Architecture: amd64 +Homepage: ${url} +Description: ${pkgdesc}" \ +> ${pkgdir}/DEBIAN/control +fakeroot dpkg --build ${pkgdir} diff --git a/debian-deb/tigerjython.svg b/debian-deb/tigerjython.svg new file mode 100644 index 0000000..0586c1d --- /dev/null +++ b/debian-deb/tigerjython.svg @@ -0,0 +1,110 @@ + + + + + + + + + + + + + + + + + + + + + + diff --git a/debian-deb/tigerjython_2.37-3_x86_64.deb b/debian-deb/tigerjython_2.37-3_x86_64.deb new file mode 100644 index 0000000..33749d6 Binary files /dev/null and b/debian-deb/tigerjython_2.37-3_x86_64.deb differ