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.000469
First Submitted: 2017-02-12 11:51 (UTC)
Last Updated: 2024-08-29 18:32 (UTC)

Latest Comments

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

DarkShadow44 commented on 2021-11-29 06:47 (UTC) (edited on 2021-12-08 20:10 (UTC) by DarkShadow44)

Common Issues - Read before reporting
Processing ./bazel-bin/qt/aqt/aqt-2.1.48-py3-none-any.whl
ERROR: Cannot install aqt 2.1.47 (from /var/cache/yay/anki-git/src/anki-git/bazel-bin/qt/aqt/aqt-2.1.47-py3-none-any.whl) and aqt 2.1.48 (from /var/cache/yay/anki-git/src/anki-git/bazel-bin/qt/aqt/aqt-2.1.48-py3-none-any.whl) because these package versions have conflicting dependencies.

Try deleting ~/.cache/bazel

If someone can provide a fix for those issues for the PKGBUILD I'd be thankful, but in the meantime I add this as FAQ.

DarkShadow44 commented on 2021-11-29 06:44 (UTC)

I'll take over maintenance. But please report any issues you have in the comments!

MartinX3 commented on 2021-11-27 18:15 (UTC)

I orphaned this package, since I've got not time and don't use anki anymore.

homocomputeris commented on 2021-11-01 21:46 (UTC) (edited on 2021-11-14 20:14 (UTC) by homocomputeris)

There is an error with the latest commit.

This PKGBUILD builds:

# Maintainer: Martin Dünkelmann<nc-duenkekl3@netcologne.de>
# Contributor: Shaoyu Tseng<zandimna@autistici.org>
# Contributor: Daniel Egeberg <daniel.egeberg@gmail.com
# Contributor: Sławomir Kowalski <suawekk+aur@gmail.com>
# Contributor: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: Timm Preetz <timm@preetz.us>
# Contributor: Michael 'manveru' Fellinger <m.fellinger@gmail.com>
# Contributor: Dave Pretty <david dot pretty at gmail dot com>

pkgname=anki-git
pkgver=r8971.311e70822
pkgrel=1
pkgdesc="Helps you remember facts (like words/phrases in a foreign language) efficiently"
url="http://ankisrs.net/"
license=('AGPL3')
arch=('any')
provides=('anki')
conflicts=('anki' 'anki20' 'anki-official-binary-bundle')
depends=(
    # anki and aqt
    'python-beautifulsoup4'
    'python-requests'
    'python-wheel'

    # anki
    'python-pysocks' # requests[socks]
    'python-decorator'
    'python-protobuf'
    'python-orjson'
    'python-distro'
    'python-stringcase'

    # aqt
    'python-send2trash'
    'python-markdown'
    'python-jsonschema'
    'python-pyaudio'
    'python-pyqtwebengine'
    'python-flask'
    'python-flask-cors'
    'python-waitress'
    'python-pyqt5'
)
makedepends=(
    'git'
    'rsync'

    'bazel'
    'clang'

    'maturin'
    'rust'

    'python-pip'
    'python-mypy-protobuf'
    'npm'
    'typescript'
)
optdepends=(
    'lame: record sound'
    'mpv: play sound. prefered over mplayer'
    'mplayer: play sound'
)
source=(
    $pkgname::git+https://github.com/dae/anki.git

    #ankitects-anki-core-i18n-master.tar.gz::https://github.com/ankitects/anki-core-i18n/tarball/master
    #ankitects-anki-desktop-ftl-master.tar.gz::https://github.com/ankitects/anki-desktop-ftl/tarball/master
    #ankitects-anki-desktop-i18n-master.tar.gz::https://github.com/ankitects/anki-desktop-i18n/tarball/master
)
sha512sums=('SKIP')

pkgver() {
    cd "$pkgname"
    printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

prepare() {
    cd "$pkgname"

    # Disable foring a specific bazel version to build with
    rm .bazelversion

    # Put translations in place.
    #ln -sf "$srcdir"/ankitects-anki-core-i18n-*/ rslib/ftl/repo
    #ln -sf "$srcdir"/ankitects-anki-desktop-ftl-*/ qt/ftl/repo
    #ln -sf "$srcdir"/ankitects-anki-desktop-i18n-*/ qt/po/repo
}

build() {
    cd "$pkgname"

    export CC=/usr/bin/clang
    export CXX=/usr/bin/clang++
    ./scripts/build
}

package() {
    cd "$pkgname"
    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

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

ParaSait commented on 2021-10-26 13:16 (UTC) (edited on 2021-10-26 13:16 (UTC) by ParaSait)

I had a similar problem to ivs_er's. During the bazel stage, my build kept failing with the following error:

FATAL: bazel crashed due to an internal error. Printing stack trace:
java.lang.ExceptionInInitializerError
        at com.google.devtools.build.lib.actions.ParameterFile.writeContent(ParameterFile.java:118)
        at com.google.devtools.build.lib.actions.ParameterFile.writeParameterFile(ParameterFile.java:111)
        at com.google.devtools.build.lib.analysis.actions.ParameterFileWriteAction$ParamFileWriter.writeOutputFile(ParameterFileWriteAction.java:175)
...

I have both jdk-openjdk (17.u35-1) and jdk11-openjdk (11.0.12.u7-1) installed. archlinux-java status indicates that java-17-openjdk from that first package is set as the default. I was able to fix the build problem by temporarily switching over to JDK11, using archlinux-java set java-11-openjdk.

(It seems this is not the only package suffering from this problem; I've had a similar problem with the same solution upon installing shattered-pixel-dungeon from the AUR, which needs to be compiled with java. I suppose with any java pkgbuilds just try switching your default JDK version and you'll likely fix the problem.)

MartinX3 commented on 2021-10-20 18:47 (UTC) (edited on 2021-10-20 18:49 (UTC) by MartinX3)

Bazel needs java.

But using java 17 I have javac.

myridium commented on 2021-10-19 06:00 (UTC)

Package broken. First it requires javac to build, which is not present in current versions of java. After setting the version of java manually so that javac is on PATH it then says:

ERROR: anki-2.1.49-cp39-abi3-manylinux_2_28_x86_64.whl is not a supported wheel on this platform.

ivs_er commented on 2021-09-03 13:33 (UTC)

2021-09-02 10:57 Solved by removing jdk 16 and letting yay install jdk 11.

ghorshy commented on 2021-09-02 15:57 (UTC)

OK, @DarkShadow44 's way worked. Removing ~/.cache/bezel fixed it.

MartinX3 commented on 2021-09-02 15:01 (UTC)

@ghorshy Just remove the old anki versions. Maybe the anki developers need to fix something.