Package Details: digital 0.31-5

Git Clone URL: https://aur.archlinux.org/digital.git (read-only, click to copy)
Package Base: digital
Description: A digital logic designer and circuit simulator.
Upstream URL: https://github.com/hneemann/Digital
Keywords: Circuit Digital Logic Simulator
Licenses: GPL-3.0-or-later
Submitter: edg-l
Maintainer: alstruit
Last Packager: alstruit
Votes: 16
Popularity: 1.39
First Submitted: 2019-07-21 16:17 (UTC)
Last Updated: 2024-11-13 10:23 (UTC)

Dependencies (5)

Required by (0)

Sources (1)

Latest Comments

1 2 Next › Last »

dbb commented on 2024-11-12 15:40 (UTC)

When building in a clean chroot looks like the mvn package runs some tests that fail:

[ERROR] Errors: 
[ERROR]   DocuTest.testDocu:327->writeXML:118->writeSVG:174 » Runtime Fontconfig head is...
[ERROR]   SVGExportTest.testSVGExportInOut:32->export:21 » Runtime Fontconfig head is nu...
[ERROR]   SVGExportTest.testSVGExportInOutMath:46->export:21 » Runtime Fontconfig head i...
[ERROR]   SVGExportTest.testSVGExportShapePins:59->export:21 » Runtime Fontconfig head i...
[ERROR]   SVGExportTest.testSVGExportShapePinsMath:72->export:21 » Runtime Fontconfig he...
[ERROR]   TestCaseDescription.testData:54 » Runtime Fontconfig head is null, check your ...
[ERROR]   TestExport.testPNGExport:40->export:26 » Runtime Fontconfig head is null, chec...
[ERROR]   TestExport.testSVGExport:32->export:26 » Runtime Fontconfig head is null, chec...
[ERROR]   TestSelect.testSelect:23 » Runtime Fontconfig head is null, check your fonts o...
[ERROR]   TestShapes.testShapes:29->useShapes:47 » Runtime Fontconfig head is null, chec...
[ERROR]   TestShapes.testShapesIEEE:33->useShapes:47 » Runtime Fontconfig head is null, ...

Adding fontconfig and ttf-font (virtual package, https://wiki.archlinux.org/title/Font_package_guidelines#Provides) to depends fixes it.

dbb commented on 2024-10-25 12:15 (UTC) (edited on 2024-10-25 12:15 (UTC) by dbb)

If you're going to use git sources then you need to include git in the makedepends array otherwise the package will fail to build in a clean chroot. base, base-devel, and their dependencies are the only packages that should be assumed to be installed and not listed explicitly in dependencies.

edwloef commented on 2024-10-24 09:07 (UTC)

If you are having issues getting the UI to show up, try setting _JAVA_AWT_WM_NONREPARENTING to 1. see: https://github.com/hneemann/Digital/issues/986

adriaticc commented on 2024-10-01 06:54 (UTC)

Some tests appear to fail. If you're feeling lucky, s/mvn package/mvn package -Dmaven.test.skip/

adriaticc commented on 2024-04-27 18:30 (UTC) (edited on 2024-04-27 18:59 (UTC) by adriaticc)

Slightly simplified as per Jenrikku's suggestion, and updated to 0.30:

# Maintainer: Edgar Luque <git@edgarluque.com>
pkgname=digital
pkgver=0.30
pkgrel=1
pkgdesc="A digital logic designer and circuit simulator."
arch=('x86_64')
url="https://github.com/hneemann/Digital"
license=('GPL')
depends=('java-runtime')
source=("$pkgname-$pkgver.zip::https://github.com/hneemann/Digital/releases/download/v${pkgver}/Digital.zip"
    "digital.desktop")
sha256sums=('17b780b8c95db7997973252a58e0928ad06517c6c0f0f79534cb5b0515734476'
            '9321b9c6c0a038782e0334190ed7d345d170c00cef0c5d784aaa9cb4bfab4ed0')

build() {
    echo -e "#!/usr/bin/env bash\njava -jar /usr/share/java/$pkgname/$pkgname.jar \$@" > "$srcdir/$pkgname.sh"
}

package() {
    install -vDm644 "$srcdir/Digital/ReleaseNotes.txt" "$pkgdir/usr/share/doc/$pkgname/changelog.txt"
    install -vDm644 "$srcdir/Digital/Digital.jar" "$pkgdir/usr/share/java/$pkgname/$pkgname.jar"
    install -vDm644 "$srcdir/Digital/linux/digital-simulator.xml" "$pkgdir/usr/share/mime/packages/digital-simulator.xml"
    install -vDm644 digital.desktop "$pkgdir/usr/share/applications/$pkgname.desktop"
    install -vDm755 "$srcdir/$pkgname.sh" "$pkgdir/usr/bin/$pkgname"
    install -vDm644 "$srcdir/Digital/icon.svg" "$pkgdir/usr/share/icons/hicolor/scalable/apps/digital.svg"

    cd "$srcdir/Digital/docu/"
    find . -exec install -vDm644 "{}" "$pkgdir/usr/share/doc/$pkgname/{}" \;
    cd "$srcdir/Digital/lib/"
    find . -exec install -vDm644 "{}" "$pkgdir/usr/share/java/$pkgname/lib/{}" \;
    cd "$srcdir/Digital/examples/"
    find . -exec install -vDm644 "{}" "$pkgdir/usr/share/java/$pkgname/examples/{}" \;
}

Note that you'll still need to set the library path to /usr/share/java/digital/lib in the application settings. It's not clear to me where digital.jar expects to find that folder.

Jenrikku commented on 2023-10-03 06:42 (UTC)

Why are you converting the svg to png and not simply putting the svg file under "/usr/share/icons/hicolor/scalable/apps/"?

edg-l commented on 2022-09-05 06:52 (UTC)

Sorry for the delay, I had this a bit abandoned.

Applied all the fixes.

thotypous commented on 2022-09-02 18:28 (UTC)

Please add librsvg to makedepends as already pointed out by justinkb. Build currently fails with:

==> Starting prepare()...
convert: delegate failed `'rsvg-convert' -o '%o' '%i'' @ error/delegate.c/InvokeDelegate/1911.
convert: unable to load module '/usr/lib/ImageMagick-7.1.0/modules-Q16HDRI/coders/svg.la': file not found @ error/module.c/OpenModule/1289.
convert: unable to open file '/tmp/magick-n1upUze9Kjeutf9piq6rWvnOh4R0MFGr': No such file or directory @ error/constitute.c/ReadImage/780.
convert: no images defined `/home/main-builder/pkgwork/src/digital_16x16.png' @ error/convert.c/ConvertImageCommand/3342.

justinkb commented on 2022-05-26 13:21 (UTC) (edited on 2022-05-26 13:36 (UTC) by justinkb)

five issues:

1) imagemagick should be in makedepends array, not depends array 2) librsvg should also be in makedepends array, as imagemagick cannot load its svg plugin otherwise 3) there is no reason to place the desktop file in a subdirectory under /usr/share/applications, just put it there 4) the icons should go into /usr/share/icons/hicolor/sizexsize/apps/ subdirectory, not into /usr/share/icons/hicolor/sizexsize/ 5) nitpicky, but you should really rename prepare() to build(). you aren't patching or otherwise preparing any source files for building. you are creating a launcher script and converting resources, both belong in build()

binarynoise commented on 2022-01-20 16:47 (UTC)

Please include the icons from /src/resources/icons/icon* as launcher/desktop/menu icons (whatever they're called, but I think you know what I mean)