# Maintainer: Phillip Schichtel pkgname=bookman-cockpit pkgver=1.12.0 pkgrel=1 options=(!strip) pkgdesc="Bookman Cockpit" arch=(any) url="https://www.bookman.de/" license=('custom') #depends=('java17-runtime' 'openjfx>=17' 'openjfx<18') #makedepends=('java17-runtime' 'unzip') # the bit.ly link looks suspicious, but that's what they use on their website. # Also the download is not versioned, so this will eventuelly break due to integrity checks failing. source=("installer.exe::https://bit.ly/3eMJh3j" "https://maven.ej-technologies.com/repository/com/install4j/install4j-runtime/9.0.7/install4j-runtime-9.0.7.jar" "OperatingSystemUtil.java" "logback.xml" "${pkgname}.desktop" "${pkgname}.sh") sha256sums=('0720edee5828d20a21b735e0572e838f3d60e069e98da35d4f589eda690a3400' '5a0bd9ca7d0632eec36d9f3b4980741f70e47511ee070c1da6c7c778ed058106' 'f2a742dabb4f1ac32867c3ba152355695220e4bd4a7ba032de98e3c5d2ed3309' 'ef6cf40ff0a46853f2d5308c884e17328a6a36009f5697d5914bfbb720cac261' '32db57235ad25fadb8b2a4a02f7618c7a51df33b50df780613f06cb33fb977e3' '2d785d3b556ecd4659d8664ed6399ce252cf370f2bbbd9f25dc01b93283a7881') build() { javac "OperatingSystemUtil.java" mv "$(dirname "$(readlink -f "OperatingSystemUtil.java")")/OperatingSystemUtil.class" "$srcdir" unzip -p "bin/bookman-${pkgver}.jar" 'de/bookman/resources/icons/bookman.png' > bookman.png } package() { local optdir="/opt/${pkgname}" local target="${pkgdir}${optdir}" local extracted="${srcdir}/jprofiler${pkgver}" install -dm755 "$target" install -dm755 "${pkgdir}/usr/bin" install -m755 "${srcdir}/${pkgname}.sh" "${pkgdir}/usr/bin/${pkgname}" install -dm755 "$target/jars" cp -a "${srcdir}/bin/lib/." "$target/jars" cp -a "${srcdir}/bin/bookman-${pkgver}.jar" "$target/jars" cp -a "${srcdir}/install4j-runtime-9.0.7.jar" "$target/jars" install -dm755 "$target/override/de/bookman/util" install -m755 "${srcdir}/OperatingSystemUtil.class" "$target/override/de/bookman/util" install -m644 "${srcdir}/logback.xml" "$target/override" local icondir="${pkgdir}/usr/share/icons/hicolor/256x256/apps" install -dm755 "$icondir" install -m644 "${srcdir}/bookman.png" "$icondir/${pkgname}.png" local appsdir="${pkgdir}/usr/share/applications" install -dm755 "$appsdir" cp "${srcdir}/${pkgname}.desktop" "$appsdir" }