Package Details: digital 0.31-1

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
Submitter: edg-l
Maintainer: alstruit
Last Packager: alstruit
Votes: 14
Popularity: 0.57
First Submitted: 2019-07-21 16:17 (UTC)
Last Updated: 2024-09-12 00:41 (UTC)

Dependencies (2)

Required by (0)

Sources (1)

Latest Comments

1 2 Next › Last »

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)

edg-l commented on 2021-10-28 11:10 (UTC)

I updated it, try now to see if it still gives this error.

Subject-17 commented on 2021-10-27 16:19 (UTC)

I'm getting the following error whenn trying to install digital, using i3wm.

install: creating directory '/tmp/makepkg/digital/pkg/digital/usr/share/applications'
install: creating directory '/tmp/makepkg/digital/pkg/digital/usr/share/applications/digital'
install: cannot stat 'digital.desktop': No such file or directory
==> ERROR: A failure occurred in package().
    Aborting...
 -> error making: digital

I do not get this problem when using the -git variant

edg-l commented on 2021-05-03 07:22 (UTC)

I fixed it, you may need to change the permissions of the example and lib dirs or completely remove them.