Package Details: asciidocfx 1.7.4-2

Git Clone URL: https://aur.archlinux.org/asciidocfx.git (read-only, click to copy)
Package Base: asciidocfx
Description: Asciidoc Editor and Toolchain written with JavaFX
Upstream URL: http://asciidocfx.com/
Licenses: Apache
Submitter: cmr
Maintainer: lipnitsk
Last Packager: lipnitsk
Votes: 7
Popularity: 0.000007
First Submitted: 2016-10-11 17:51 (UTC)
Last Updated: 2021-10-14 17:04 (UTC)

Dependencies (5)

Required by (0)

Sources (2)

Latest Comments

1 2 3 Next › Last »

nomisge commented on 2023-12-28 21:02 (UTC) (edited on 2023-12-28 21:17 (UTC) by nomisge)

As @tom mentioned: It works out of the box if tar.gz version is used.

Following PKGBUILD works for me (the dependencies probably need to be adjusted)

I only get some weird errors on startup, I couldn't fix yet: "Internal error: Could not open config file.", "Internal error: The selected application could not be instantiated" and "Internal error: The selected application 504 could not be instantiated" Maybe someone has an idea?

pkgname=asciidocfx
pkgver=1.8.6
pkgrel=1
pkgdesc="Asciidoc Editor and Toolchain written with JavaFX"
arch=('any')

url='http://asciidocfx.com/'
license=('Apache')

depends=('archlinux-java-run' 'java-environment=21' 'java-openjfx=21')

source=(
    "https://github.com/asciidocfx/AsciidocFX/releases/download/v${pkgver}/AsciidocFX_Linux.tar.gz"
    'asciidocfx'
)
sha512sums=('263ea3d39a7653d5a11ee7aef93012c7bc36ba74b26cb1ac82bec7840843994cd17afc140aa5ce8ccedca9ffc1cff96eb63cc977ffa2304c211b974b15be28ed'
            '735d191eb9b20e3625c247cd5668703f79d6c83793fab2923375e97dfc19eb176ea43ce15bd5974ac13d1cc1cfc7f2bcc9f3089fa4f42d0d528f98e41d54e81f')


prepare() {
    cd "${srcdir}"
    # Generate a desktop entry
    # -f: forces and overrides the file if any
    # -n: do not download an icon
    # This tool assumes the icon has the same name as pkgname.
    # For categories see https://standards.freedesktop.org/menu-spec/latest/apa.html
    gendesk -f -n \
        --pkgname "$pkgname" \
        --pkgdesc "$pkgdesc" \
        --name "AsciidocFX" \
        --exec "/usr/bin/asciidocfx" \
        --categories "Development;Office;WordProcessor;TextTools;ComputerScience;Documentation;Java"
}

build() {
    cd "${srcdir}"
}

package() {
    cd "${srcdir}"

    install -dm755 "${pkgdir}/opt/${pkgname}/lib"
    install -dm755 "${pkgdir}/usr/bin"
    install -Dm644 'AsciidocFX/conf/public/logo.png' "${pkgdir}/usr/share/pixmaps/${pkgname}.png"

    mv -t "${pkgdir}/opt/${pkgname}/" AsciidocFX/{conf,lib}
    rm "${pkgdir}/opt/${pkgname}/lib/commons-logging-1.0.4.jar"
    install -m755 'asciidocfx' "${pkgdir}/usr/bin/asciidocfx"

    install -Dm644 "${pkgname}.desktop" "${pkgdir}/usr/share/applications/${pkgname}.desktop"
}

I also changed the start script 'ascidoxfx'

#!/bin/sh
unset JFXPATH
unset BASEDIR

BASEDIR=/opt/asciidocfx
JFXPATH=/usr/lib/jvm/java-21-openjfx/lib

BASE_JARS=`ls -1 $BASEDIR/lib/*.jar | paste -sd ":" -`
JAVAFX_JARS=`ls -1 $JFXPATH/javafx* | paste -sd ":" -`

CP="$CP:$BASE_JARS:$JAVAFX_JARS"

archlinux-java-run -a 21 -b 21 -- \
  -Dapp.name="asciidocfx" \
  -Dapp.pid="$$" \
  -Dapp.repo="$BASEDIR/lib" \
  -Dapp.home="$BASEDIR" \
  -Dbasedir="$BASEDIR" \
  -Duser.language=en \
  -Duser.country=US \
  -Dfile.encoding=UTF-8 \
  -Xms256M \
  -Xmx1024M \
  --enable-preview \
  -Djava.awt.headless=false \
  -Dsun.java2d.metal=true \
  -Djavafx.autoproxy.disable=true \
  -Djdk.xml.xpathExprGrpLimit=0 \
  -Djdk.xml.xpathExprOpLimit=0 \
  -Djdk.xml.xpathTotalOpLimit=0 \
  -Dorg.apache.xml.dtm.DTMManager=org.apache.xml.dtm.ref.DTMManagerDefault \
  --add-opens java.base/sun.nio.ch=ALL-UNNAMED \
  --add-opens java.base/java.io=ALL-UNNAMED \
  --add-exports javafx.graphics/com.sun.javafx.scene.layout=ALL-UNNAMED \
  --add-exports javafx.graphics/com.sun.javafx.util=ALL-UNNAMED \
  --add-exports javafx.graphics/com.sun.javafx.application=ALL-UNNAMED \
  --add-exports javafx.graphics/com.sun.javafx.sg.prism=ALL-UNNAMED \
  --add-exports javafx.graphics/com.sun.javafx.scene=ALL-UNNAMED \
  --add-exports javafx.base/com.sun.javafx.logging=ALL-UNNAMED \
  --add-exports javafx.graphics/com.sun.prism=ALL-UNNAMED \
  --add-exports javafx.graphics/com.sun.glass.ui=ALL-UNNAMED \
  --add-exports javafx.graphics/com.sun.javafx.geom.transform=ALL-UNNAMED \
  --add-exports javafx.graphics/com.sun.javafx.tk=ALL-UNNAMED \
  --add-exports javafx.graphics/com.sun.glass.utils=ALL-UNNAMED \
  --add-exports javafx.graphics/com.sun.javafx.font=ALL-UNNAMED \
  --add-exports javafx.graphics/com.sun.javafx.scene.input=ALL-UNNAMED \
  --add-exports javafx.graphics/com.sun.javafx.scene.text=ALL-UNNAMED \
  --add-exports javafx.base/com.sun.javafx.event=ALL-UNNAMED \
  --add-exports javafx.base/com.sun.javafx.reflect=ALL-UNNAMED \
  --add-exports javafx.base/com.sun.javafx.beans=ALL-UNNAMED \
  --add-exports javafx.base/com.sun.javafx.collections=ALL-UNNAMED \
  --add-exports javafx.graphics/com.sun.javafx.scene.traversal=ALL-UNNAMED \
  --add-exports javafx.graphics/com.sun.javafx.stage=ALL-UNNAMED \
  --add-exports javafx.base/com.sun.javafx.binding=ALL-UNNAMED \
  --add-exports javafx.graphics/com.sun.javafx.geom=ALL-UNNAMED \
  --add-exports javafx.graphics/com.sun.javafx.iio=ALL-UNNAMED \
  --add-exports javafx.base/com.sun.javafx=ALL-UNNAMED \
  --add-exports javafx.graphics/com.sun.prism.paint=ALL-UNNAMED \
  --add-exports javafx.graphics/com.sun.scenario.effect=ALL-UNNAMED \
  --add-exports javafx.graphics/com.sun.javafx.text=ALL-UNNAMED \
  --add-opens javafx.base/com.sun.javafx.collections=ALL-UNNAMED \
  --add-exports javafx.graphics/com.sun.scenario.effect.impl.prism=ALL-UNNAMED \
  --add-exports javafx.graphics/com.sun.javafx.css=ALL-UNNAMED \
  --add-opens javafx.base/com.sun.javafx.collections=javafx.web \
  --add-opens javafx.controls/javafx.scene.control=ALL-UNNAMED \
  --add-opens javafx.controls/javafx.scene.control.skin=ALL-UNNAMED \
  --add-opens javafx.graphics/javafx.scene.input=ALL-UNNAMED \
  --add-opens javafx.web/javafx.scene.web=ALL-UNNAMED \
  --add-opens javafx.web/com.sun.webkit=ALL-UNNAMED \
  --add-exports javafx.base/com.sun.javafx.property=ALL-UNNAMED \
  --add-exports javafx.controls/com.sun.javafx.scene.control=ALL-UNNAMED \
  --module-path $JFXPATH --add-modules javafx.controls,javafx.fxml,javafx.graphics,javafx.media,javafx.swing,javafx.web \
  -cp "$CP" com.kodedu.boot.AppStarter \
  "$@"

@lipnitsk if you add me as maintainer, I'd push it myself.

mindbound commented on 2022-12-11 12:40 (UTC)

Build fails with

Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.0:compile (default-compile) on project AsciidocFX: Fatal error compiling: invalid flag: --release -> [Help 1]

tom commented on 2022-04-12 15:47 (UTC)

build faild...

$ ccm s ... INFO] Finished at: 2022-04-12T17:46:00+02:00 [INFO] ------------------------------------------------------------------------ ==> Entering fakeroot environment... ==> Starting package()... cp: cannot stat '/usr/lib/jvm/java-17-openjdk/lib/javafx*': No such file or directory ==> ERROR: A failure occurred in package(). Aborting... ==> ERROR: Build failed, check

tom commented on 2021-06-17 13:20 (UTC)

souravdas142 commented on 2021-04-26 06:14 1.7.4 released on 25.04.2021

checkout : https://github.com/asciidocfx/AsciidocFX/releases/tag/v1.7.4

download : > >https://github.com/asciidocfx/AsciidocFX/releases/download/v1.7.4/AsciidocFX_Linux.tar.gz

this one works now out of the box after unpacking

souravdas142 commented on 2021-04-26 17:26 (UTC)

if you add AUR jdk-16 to your makedepends aray under PKGBUILD, will be it very problematic? will it break something? If Everything goes well, you may add then.

lipnitsk commented on 2021-04-26 14:57 (UTC)

Blocked by Arch JDK still stuck at version 15. 1.7.4 seems to require Java 16. Will upgrade when Java 16 is rolled out to Arch Linux.

souravdas142 commented on 2021-04-26 06:14 (UTC)

v1.7.4 released on 25.04.2021

checkout : https://github.com/asciidocfx/AsciidocFX/releases/tag/v1.7.4

download : https://github.com/asciidocfx/AsciidocFX/releases/download/v1.7.4/AsciidocFX_Linux.tar.gz

Please update this package.