Package Details: anki-git r11208.b7cb0c0d0-1

Git Clone URL: https://aur.archlinux.org/anki-git.git (read-only, click to copy)
Package Base: anki-git
Description: Helps you remember facts (like words/phrases in a foreign language) efficiently
Upstream URL: hhttps://apps.ankiweb.net/
Keywords: anki memorise memory study
Licenses: AGPL3
Conflicts: anki, anki-official-binary-bundle, anki20
Provides: anki
Submitter: degeberg
Maintainer: DarkShadow44
Last Packager: DarkShadow44
Votes: 25
Popularity: 0.000440
First Submitted: 2017-02-12 11:51 (UTC)
Last Updated: 2024-08-29 18:32 (UTC)

Latest Comments

« First ‹ Previous 1 .. 5 6 7 8 9 10 11 12 Next › Last »

Rumpelstilzchen commented on 2021-02-24 18:10 (UTC)

Correct me if I’m wrong, but I think the paths of the three install commands in package() are outdated. Instead of

install -Dm755 qt/runanki "$pkgdir"/usr/bin/anki
install -Dm644 qt/anki.desktop "$pkgdir"/usr/share/applications/anki.desktop
install -Dm644 qt/anki.png "$pkgdir"/usr/share/pixmaps/anki.png

one should have

install -Dm755 qt/runanki.py "$pkgdir"/usr/bin/anki
install -Dm644 qt/linux/anki.desktop "$pkgdir"/usr/share/applications/anki.desktop
install -Dm644 qt/linux/anki.png "$pkgdir"/usr/share/pixmaps/anki.png

Without changing them I get the same problem as @MartinX3, while with the new paths the package seems to install fine.

MartinX3 commented on 2021-01-02 11:40 (UTC) (edited on 2021-01-02 11:40 (UTC) by MartinX3)

Ah, now I can finally compile it on my laptop as well

Sadly it stops now with

==> Beginne package()...
Processing ./bazel-bin/pylib/anki/anki-2.1.39-cp38-abi3-manylinux2014_x86_64.whl
Processing ./bazel-bin/qt/aqt/aqt-2.1.39-py3-none-any.whl
Installing collected packages: anki, aqt
  WARNING: The script anki is installed in '/tmp/makepkg/anki-git/pkg/anki-git/usr/bin' which is not on PATH.
  Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
Successfully installed anki-2.1.39 aqt-2.1.39
install: der Aufruf von stat für 'qt/runanki' ist nicht möglich: Datei oder Verzeichnis nicht gefunden
==> FEHLER: Ein Fehler geschah in package().
    Breche ab...

MartinX3 commented on 2021-01-02 11:34 (UTC)

@misc Thank you and done :)

misc commented on 2020-12-22 20:15 (UTC)

It's possible (not necessary) now to abbreviate the two bazel runs into one bazel build -c opt dist.

Problematic however is the .bazelversion, as it breaks building with higher versions unless manually matched (atm: 3.7.0 → 3.7.2). I guess just rm'ing the file works, too.

MartinX3 commented on 2020-12-10 11:52 (UTC)

Hmm, laptop i7-6700HQ here and my ram isn't full and I compile on a SSD. And since we both use arch we should have the same package versions. Weird.

misc commented on 2020-12-10 03:34 (UTC)

It works fine for me (i7 4770). No idea why it fails for you, sorry.

MartinX3 commented on 2020-12-09 15:10 (UTC)

@misc Thank you, the package() is updated.

But sadly my building hangs at [698 / 1,093] Building rust worker [for host]; 757s linux-sandbox even without the "-c opt" flag

So someone else should test it and report bugs. :)

misc commented on 2020-12-08 00:35 (UTC)

@MartinX3: oof, no idea why it does that for you (you could try compiling without -c opt just to see if it works, but the binary will be considerably slower).

However, it seems you did not update package() — the old pip install will fail.

MartinX3 commented on 2020-12-07 17:21 (UTC)

@misc thank you a lot :D

I pushed an update, but sadly I can't test it correctly After several attempts it seem to loop or compile at this step (this time canceled earlier) [712 / 1,107] Building rust worker [for host]; 553s linux-sandbox

Or my laptop is too slow

misc commented on 2020-12-07 13:35 (UTC) (edited on 2020-12-07 22:03 (UTC) by misc)

New build instructions for 2.1.36:

build() {
    export CC=/usr/bin/clang
    export CXX=/usr/bin/clang++
    cd anki-$pkgver
    bazel build -c opt //pylib/anki:wheel
    bazel build -c opt //qt/aqt:wheel
}

package() {
    cd anki-$pkgver
    PIP_CONFIG_FILE=/dev/null pip install --isolated --root="$pkgdir" --ignore-installed --no-deps bazel-bin/pylib/anki/anki-*.whl bazel-bin/qt/aqt/aqt-*.whl
}

Obviously they still could use a cleanup. The export is necessary with ccache as it otherwise fails trying to access outside bazel's sandbox. Note that bazel itself will write outside the srcdir into ~/.cache/bazel.

depends & co. also need to be updated as in Community's package + bazel.

e: @MartinX3, oof, no idea why it does that for you (you could try compiling without -c opt just to see if it works, but the binary will be considerably slower). However, it seems you did not update package() — the old pip install will fail.