Package Details: anki-git r5745.f58eb80d9-2

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: http://ankisrs.net/
Keywords: anki memorise memory study
Licenses: AGPL3
Conflicts: anki, anki-official-binary-bundle, anki20
Provides: anki
Submitter: degeberg
Maintainer: MartinX3
Last Packager: MartinX3
Votes: 19
Popularity: 0.005048
First Submitted: 2017-02-12 11:51
Last Updated: 2021-01-02 11:33

Required by (3)

Sources (1)

Latest Comments

1 2 3 Next › Last »

MartinX3 commented on 2021-01-02 11:40

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

@misc Thank you and done :)

misc commented on 2020-12-22 20:15

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

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

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

MartinX3 commented on 2020-12-09 15:10

@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

@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

@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

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

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