Package Details: anki-git r10935.eb597475c-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.025792
First Submitted: 2017-02-12 11:51 (UTC)
Last Updated: 2024-03-05 19:32 (UTC)

Latest Comments

« First ‹ Previous 1 2 3 4 5 6 7 .. 12 Next › Last »

DarkShadow44 commented on 2023-11-07 18:02 (UTC)

@hearth Sorry, that was an oversight. Of course the paths changes as well, it should work now.

hearth commented on 2023-11-07 11:50 (UTC)

Failure to build today:

==> Extracting sources...
  -> Creating working copy of anki git repo...
Cloning into 'anki'...
done.
==> Starting prepare()...
/home/hearth/.cache/paru/clone/anki-git/PKGBUILD: line 73: cd: anki-git: No such file or directory
==> ERROR: A failure occurred in prepare().
Aborting...
error: failed to build 'anki-git-r.9268dce-1'

DarkShadow44 commented on 2023-11-06 18:57 (UTC)

Updated, I hope the pkgver change this created doesn't lead to problems.

MarsSeed commented on 2023-11-06 18:23 (UTC) (edited on 2023-11-06 18:24 (UTC) by MarsSeed)

Please don't set the local repo name to 'anki-git'.

I recommend that you set it to 'anki'.

It is better to keep the original repo name, in case other PKGBUILDs (even stable ones) decide to use the git repo as source. (Otherwise, with custom naming, every git-source using packages will clone its own copy, even if a common SRCDEST is set.)

Also, after the recent repo URL change, makepkg will refuse to build if there is an existing clone: the new URL makes it think that it leads to a different repo.

Setting the local repo name to 'anki' eliminates that problem as well.

petronny commented on 2023-09-14 06:47 (UTC)

My previous error superisely disappears after disabling LTO.

petronny commented on 2023-08-04 05:56 (UTC) (edited on 2023-08-04 06:02 (UTC) by petronny)

Getting this error in a clean chroot:

  = note: /usr/bin/ld: /build/anki-git/src/anki-git/out/rust/release/deps/libzstd_sys-31396a3548e0e204.rlib: error adding symbols: file format not recognized
          collect2: error: ld returned 1 exit status

https://github.com/arch4edu/cactus/actions/runs/5750924259/job/15612081037

I experienced a similiar issue before https://github.com/bartoszek/AUR-cloudcompare/issues/18 .

DarkShadow44 commented on 2023-01-24 22:01 (UTC)

Thanks, updated

tobias.predel commented on 2023-01-24 19:53 (UTC) (edited on 2023-01-24 19:57 (UTC) by tobias.predel)

A recent commit in Anki introduced the possibility to control which protoc binary is called via the environment variable PROTOC_BINARY. If not set, it will try to call the protoc binary at a place that does not exist. Please adapt the PKGBUILD so that the protoc binary from the python-protobuf is used. Thanks in advance!

diff --git a/PKGBUILD b/PKGBUILD
index 641908e..09b2b44 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -7,9 +7,10 @@
 # Contributor: Timm Preetz <timm@preetz.us>
 # Contributor: Michael 'manveru' Fellinger <m.fellinger@gmail.com>
 # Contributor: Dave Pretty <david dot pretty at gmail dot com>
+# Contributor: Tobias Predel <tobias.predel@gmail.com>

 pkgname=anki-git
-pkgver=r9764.797270802
+pkgver=r9947.96a9dba67
 pkgrel=1
 pkgdesc="Helps you remember facts (like words/phrases in a foreign language) efficiently"
 url="http://ankisrs.net/"
@@ -89,7 +90,7 @@ build() {

     export CC=/usr/bin/clang
     export CXX=/usr/bin/clang++
-    ./tools/build
+    PROTOC_BINARY=$(which protoc) ./tools/build
 }

 package() {

langfingaz commented on 2023-01-23 17:09 (UTC)

Has anyone tried to build this package with docker?

For me it does fail with the following error. Not sure how to resolve this. All dependencies (including protobuf and python-protobuf) are installed. My build container is based on archlinux:base-devel. The full log can be viewed here.

This may be a Docker-specific issue, independent of the anki-git PKGBUILD file. Thanks for creating/maintaining that file!

?[0m?[0m?[1m?[32m   Compiling?[0m workspace-hack v0.1.0 (/tmp/pkg/src/anki-git/tools/workspace-hack)
?[0m?[0m?[1m?[32m   Compiling?[0m ninja_gen v0.0.0 (/tmp/pkg/src/anki-git/build/ninja_gen)
?[0m?[0m?[1m?[32m   Compiling?[0m configure v0.0.0 (/tmp/pkg/src/anki-git/build/configure)
?[0m?[0m?[1m?[32m    Finished?[0m dev [unoptimized + debuginfo] target(s) in 18.65s
?[0m?[0m?[1m?[32m     Running?[0m `out/rust/debug/configure`
ninja: error: '/tmp/pkg/src/anki-git/out/extracted/protoc/bin/protoc', needed by '/tmp/pkg/src/anki-git/out/pylib/anki/ankidroid_pb2.py', missing and no known rule to make it
?[0m?[0m?[1m?[32m    Finished?[0m dev [unoptimized + debuginfo] target(s) in 0.16s
?[0m?[0m?[1m?[32m     Running?[0m `out/rust/debug/configure`
ninja: error: '/tmp/pkg/src/anki-git/out/extracted/protoc/bin/protoc', needed by '/tmp/pkg/src/anki-git/out/pylib/anki/ankidroid_pb2.py', missing and no known rule to make it
?[0m?[1m?[31m
Build failed.

DarkShadow44 commented on 2022-11-27 21:17 (UTC)

Thanks, pushed an update! If something goes wrong, please tell me.