move arch to aur

This commit is contained in:
Beat Jäckle 2024-01-14 09:07:48 +01:00
parent bcb0728fdf
commit 55af334381
5 changed files with 0 additions and 206 deletions

View file

@ -1,35 +0,0 @@
# Maintainer: Beat Jäckle <beat at git dot jdmweb2 dot ch>
pkgname=tigerjython
pkgver=2.37
pkgrel=2
#pkgrel=5
pkgdesc='TigerJython IDE'
arch=(x86_64)
url='https://www.tigerjython.ch/'
license=('custom')
depends=('java-runtime>=2')
source=("TigerJython.tar.gz")
b2sums=('SKIP')
_install_path=/usr/share
build() {
sed -i "s|/opt/${pkgname}|${_install_path}/${pkgname}|g" TigerJython/tigerjython.desktop
sed -i "s|/opt/${pkgname}|${_install_path}/${pkgname}|g" TigerJython/tigerjython
}
package() {
install -Ddm755 "${pkgdir}/${_install_path}/${pkgname}/Lib"
install -Ddm755 "${pkgdir}/${_install_path}/${pkgname}/TestSamples"
install -Ddm755 "${pkgdir}/usr/share/man/man1/"
install -Dm644 "${srcdir}/TigerJython/tigerjython2.jar" "${pkgdir}/${_install_path}/${pkgname}/."
install -Dm644 "${srcdir}/TigerJython/Lib/"* "${pkgdir}/${_install_path}/${pkgname}/Lib/."
install -Dm644 "${srcdir}/TigerJython/TestSamples/"* "${pkgdir}/${_install_path}/${pkgname}/TestSamples/."
install -Dm644 "${srcdir}/TigerJython/man/tigerjython.1.gz" "${pkgdir}/usr/share/man/man1/"
install -Dm755 "${srcdir}/TigerJython/tigerjython" "${pkgdir}/usr/bin/tigerjython"
install -Dm755 "${srcdir}/TigerJython/tigerjython.desktop" "${pkgdir}/usr/share/applications/tigerjython.desktop"
install -Dm755 "${srcdir}/TigerJython/tigerjython.svg" "${pkgdir}/usr/share/icons/hicolor/scalable/apps/tigerjython.svg"
}

View file

@ -1 +0,0 @@
../TigerJython.tar.gz

View file

@ -1,60 +0,0 @@
# Maintainer: Beat Jäckle <beat@git.jdmweb2.ch>
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"
}

File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 76 KiB