Package Details: anki-git r11894.f927aa578-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: https://github.com/ankitects/anki
Keywords: anki memorise memory study
Licenses: AGPL-3.0-or-later
Conflicts: anki, anki-bin, anki-official-binary-bundle, anki20
Provides: anki
Submitter: degeberg
Maintainer: blackthorne
Last Packager: blackthorne
Votes: 25
Popularity: 0.000000
First Submitted: 2017-02-12 11:51 (UTC)
Last Updated: 2025-07-07 06:18 (UTC)

Pinned Comments

blackthorne commented on 2025-05-09 19:48 (UTC)

the PKGBUILD should be compiling now. if not, please let me know. i'll try and clean up the PKGBUILD soon, try and get rid of the AUR dependency, compiler optimization flags, etc.

@hmry thanks for the rust-clang-linking fix.

Latest Comments

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

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.

prometheus commented on 2020-11-10 13:02 (UTC)

It fails to build.

==> Starting build()...
  -> Building UI
/home/[redacted]/.cache/yay/anki-git/PKGBUILD: line 34: ./tools/build_ui.sh: No such file or directory
==> ERROR: A failure occurred in build().
    Aborting...
error making: anki-git

MartinX3 commented on 2020-09-24 16:57 (UTC)

Seems like the developers of anki doesn't provide a way to generate their provided binary bundle. It's only possible to run anki directly from code, which makes it impossible (?) to write an installation routine.