diff options
-rw-r--r-- | .SRCINFO | 3 | ||||
-rw-r--r-- | PKGBUILD | 10 |
2 files changed, 7 insertions, 6 deletions
@@ -1,7 +1,7 @@ pkgbase = anki-qt5 pkgdesc = Helps you remember facts (like words/phrases in a foreign language) - Qt5 Build pkgver = 23.12.1 - pkgrel = 1 + pkgrel = 2 url = https://apps.ankiweb.net/ changelog = anki-qt5.changelog arch = x86_64 @@ -14,7 +14,6 @@ pkgbase = anki-qt5 makedepends = python-wheel makedepends = nodejs>=18 makedepends = yarn - makedepends = mold depends = python>=3.9 depends = python-beautifulsoup4 depends = python-waitress>=2.0.0 @@ -20,7 +20,7 @@ declare -gA _caches=( pkgname=anki-qt5 pkgver=23.12.1 -pkgrel=1 +pkgrel=2 pkgdesc="Helps you remember facts (like words/phrases in a foreign language) - Qt5 Build" url="https://apps.ankiweb.net/" license=('AGPL3') @@ -57,11 +57,10 @@ makedepends=( 'git' 'ninja' 'cargo' - 'python-installer' # TODO: could use either wheel or installer, both are not needed afaik + 'python-installer' 'python-wheel' 'nodejs>=18' 'yarn' - 'mold' ) optdepends=( 'lame: record sound' @@ -139,7 +138,10 @@ build() { export CARGO_HOME="$srcdir/${_caches[cargo]}" # do not litter in ~ export RELEASE=2 # anki-internal variable for optimization - mold -run ./ninja wheels -v # use mold as linker to allow for LTO + # use fat LTO objects, allows for LTO, needed for rust crate "ring" + # See https://gitlab.archlinux.org/archlinux/packaging/packages/pacman/-/issues/20 and https://github.com/briansmith/ring/issues/1444 + export CFLAGS+=' -ffat-lto-objects' + ./ninja wheels -v } package() { |