Carl Smedstad pushed to branch main at Arch Linux / Packaging / Packages / anki


Commits:
d8d775d2 by Carl Smedstad at 2026-02-06T20:01:35+01:00
upgpkg: 25.09.2-5: Try make reproducible

- - - - -


4 changed files:

- .SRCINFO
- PKGBUILD
- REUSE.toml
- + reproducible-sveltekit.patch


Changes:

=====================================
.SRCINFO
=====================================
@@ -1,7 +1,7 @@
 pkgbase = anki
        pkgdesc = A smart spaced repetition flashcard program
        pkgver = 25.09.2
-       pkgrel = 4
+       pkgrel = 5
        url = https://apps.ankiweb.net/
        arch = x86_64
        license = AGPL-3.0-or-later
@@ -46,6 +46,7 @@ pkgbase = anki
        source = strip-type-checking-deps.patch
        source = strip-python-pip-system-certs.patch
        source = no-corepack.patch
+       source = reproducible-sveltekit.patch
        b2sums = 
42c5859373132b76ca7f3c047be5cb175c326da770638e6d329538a6fc258dea14bb63f6ad75fc0ce59ecc9818d87b59013602a6c1896c6cbfe71412d2fb8ef6
        b2sums = SKIP
        b2sums = SKIP
@@ -54,5 +55,6 @@ pkgbase = anki
        b2sums = 
4ea648cec8b784b7586605ddc97633b9471ab8e1f75b5f38c0459f839625cdc3e28419cf34f8d8e453283707a17a090a48287140573c96599d83baa56d114a4a
        b2sums = 
903e22a623f058215d50cb2574ac0beeea784c7b7d07aaa207ebcfcd5a0795be70341845bc4fd20bf296e6c389e98d481a6e0a0b3ad550e88adf5aeb0d401fc6
        b2sums = 
e1a05314e4d4118cd1f23de1da6c6561db6cc322a0fd1507f4fd72bdf16352cbab4e7150da5788a52a988e923d339555e4923079459c4fa55dff9c695c4117bb
+       b2sums = 
1dede904fbc5c0b499251d3d11a39ad2f467d644ad742d6d162dc4cd60a120f445e0b5f0fb9758ace1d95372ad48a86bbd6cad3200d97f19f4c62bb0620dc8c4
 
 pkgname = anki


=====================================
PKGBUILD
=====================================
@@ -9,7 +9,7 @@
 
 pkgname=anki
 pkgver=25.09.2
-pkgrel=4
+pkgrel=5
 pkgdesc="A smart spaced repetition flashcard program"
 arch=('x86_64')
 url="https://apps.ankiweb.net/";
@@ -62,6 +62,7 @@ source=(
   "strip-type-checking-deps.patch"
   "strip-python-pip-system-certs.patch"
   "no-corepack.patch"
+  "reproducible-sveltekit.patch"
 )
 
b2sums=('42c5859373132b76ca7f3c047be5cb175c326da770638e6d329538a6fc258dea14bb63f6ad75fc0ce59ecc9818d87b59013602a6c1896c6cbfe71412d2fb8ef6'
         'SKIP'
@@ -70,7 +71,8 @@ 
b2sums=('42c5859373132b76ca7f3c047be5cb175c326da770638e6d329538a6fc258dea14bb63f
         
'18a8fefd5995ba83ebdb3e0c7d9a5c821a19b51616f6eebd7980e30bab4ab3c12573f5a8e59d7db03492a9df22245275da74a4594c2b652d772fbbb17984ff96'
         
'4ea648cec8b784b7586605ddc97633b9471ab8e1f75b5f38c0459f839625cdc3e28419cf34f8d8e453283707a17a090a48287140573c96599d83baa56d114a4a'
         
'903e22a623f058215d50cb2574ac0beeea784c7b7d07aaa207ebcfcd5a0795be70341845bc4fd20bf296e6c389e98d481a6e0a0b3ad550e88adf5aeb0d401fc6'
-        
'e1a05314e4d4118cd1f23de1da6c6561db6cc322a0fd1507f4fd72bdf16352cbab4e7150da5788a52a988e923d339555e4923079459c4fa55dff9c695c4117bb')
+        
'e1a05314e4d4118cd1f23de1da6c6561db6cc322a0fd1507f4fd72bdf16352cbab4e7150da5788a52a988e923d339555e4923079459c4fa55dff9c695c4117bb'
+        
'1dede904fbc5c0b499251d3d11a39ad2f467d644ad742d6d162dc4cd60a120f445e0b5f0fb9758ace1d95372ad48a86bbd6cad3200d97f19f4c62bb0620dc8c4')
 
 prepare() {
   cd $pkgname
@@ -79,6 +81,7 @@ prepare() {
   patch -Np1 < ../strip-type-checking-deps.patch
   patch -Np1 < ../strip-python-pip-system-certs.patch
   patch -Np1 < ../no-corepack.patch
+  patch -Np1 < ../reproducible-sveltekit.patch
 
   git submodule init
   git config submodule.ftl/core-repo.url ../anki-core-i18n


=====================================
REUSE.toml
=====================================
@@ -28,6 +28,7 @@ SPDX-License-Identifier = "0BSD"
 path = [
     "no-corepack.patch",
     "no-update.patch",
+    "reproducible-sveltekit.patch",
     "strip-formatter-deps.patch",
     "strip-python-pip-system-certs.patch",
     "strip-type-checking-deps.patch",


=====================================
reproducible-sveltekit.patch
=====================================
@@ -0,0 +1,21 @@
+diff --git i/ts/svelte.config.js w/ts/svelte.config.js
+index 874bb9cec..ea836df30 100644
+--- i/ts/svelte.config.js
++++ w/ts/svelte.config.js
+@@ -1,5 +1,6 @@
+ import adapter from "@sveltejs/adapter-static";
+ import { vitePreprocess } from "@sveltejs/vite-plugin-svelte";
++import { readFileSync } from "fs";
+ import { dirname, join } from "path";
+ import preprocess from "svelte-preprocess";
+ import { fileURLToPath } from "url";
+@@ -17,6 +18,9 @@ const config = {
+         adapter: adapter(
+             { pages: "../out/sveltekit", fallback: "index.html", precompress: 
false },
+         ),
++        version: {
++            name: readFileSync(join(tsFolder, "../.version"), "utf-8").trim(),
++        },
+         alias: {
+             "@tslib": join(tsFolder, "lib/tslib"),
+             "@generated": join(tsFolder, "../out/ts/lib/generated"),



View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/anki/-/commit/d8d775d22588309679cd38cfd18fe9ff3d7d9df0

-- 
View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/anki/-/commit/d8d775d22588309679cd38cfd18fe9ff3d7d9df0
You're receiving this email because of your account on gitlab.archlinux.org.


Reply via email to