Balló György pushed to branch main at Arch Linux / Packaging / Packages / 
biblioteca


Commits:
d4aa3bf2 by Balló György at 2025-04-07T16:34:32+02:00
upgpkg: 1.5-3: Apply one more fix

- - - - -


3 changed files:

- .SRCINFO
- PKGBUILD
- + biblioteca-command-line-arguments.patch


Changes:

=====================================
.SRCINFO
=====================================
@@ -1,7 +1,7 @@
 pkgbase = biblioteca
        pkgdesc = API documentation viewer for GNOME
        pkgver = 1.5
-       pkgrel = 2
+       pkgrel = 3
        url = https://apps.gnome.org/Biblioteca/
        install = biblioteca.install
        arch = any
@@ -23,12 +23,14 @@ pkgbase = biblioteca
        source = git+https://github.com/sonnyp/troll.git
        source = biblioteca-gtk-init.patch
        source = troll-gtk-init.patch
+       source = biblioteca-command-line-arguments.patch
        source = biblioteca-no-flatpak.patch
        source = biblioteca-build-index.hook
        b2sums = 
5c186a3759418e3f5a86bc987105d82d86f0c2bca51e20b75fc928b8a91a75a358d1afa751faa300aba75a5642fd9d6d55d3f36af18d2cfd56d3ae17042249d8
        b2sums = SKIP
        b2sums = 
609e6716b1a918ba6120bfdbf745165d66565193b2909c4399acaf80d1148038846215cb15ec7c433da51ee1211b18b9aff37c0ca73cf11f251b8be01c27bddf
        b2sums = 
7190a1851b490e1e429de5f571f6acdf7e2254c30d5368acbed270bac9d09e9e4d33ac5479d8f2b813a4178d2c3b3d82d49e82b76111530b05c36fe89d407338
+       b2sums = 
83f0c4825a04eb1ad5b6bb9397cc4c2b7f57a17dd58a913b289230875f179cb1e6912f357491d15d537df249729fa227a195e63254186fe67f7c1953a20dd9a9
        b2sums = 
f034f380cddd13538ec2e09085fa58112b79d9ec9474939e6dc8e19df642fb07181ed710df24b18b6612e7ae734ada054fb0306a1d56159fa2f48640cccf3e00
        b2sums = 
defc3485c5e0e80322b8782e1706ea9d26e66c2cd766cfc2ae93d60593e502b8ad20c2583c24fbd7e9ef0e964d41a503f80e37f334024c7fc000f6111e69df90
 


=====================================
PKGBUILD
=====================================
@@ -2,7 +2,7 @@
 
 pkgname=biblioteca
 pkgver=1.5
-pkgrel=2
+pkgrel=3
 pkgdesc='API documentation viewer for GNOME'
 arch=(any)
 url='https://apps.gnome.org/Biblioteca/'
@@ -30,6 +30,7 @@ source=(
   git+https://github.com/sonnyp/troll.git
   biblioteca-gtk-init.patch
   troll-gtk-init.patch
+  biblioteca-command-line-arguments.patch
   biblioteca-no-flatpak.patch
   biblioteca-build-index.hook
 )
@@ -38,6 +39,7 @@ b2sums=(
   SKIP
   
609e6716b1a918ba6120bfdbf745165d66565193b2909c4399acaf80d1148038846215cb15ec7c433da51ee1211b18b9aff37c0ca73cf11f251b8be01c27bddf
   
7190a1851b490e1e429de5f571f6acdf7e2254c30d5368acbed270bac9d09e9e4d33ac5479d8f2b813a4178d2c3b3d82d49e82b76111530b05c36fe89d407338
+  
83f0c4825a04eb1ad5b6bb9397cc4c2b7f57a17dd58a913b289230875f179cb1e6912f357491d15d537df249729fa227a195e63254186fe67f7c1953a20dd9a9
   
f034f380cddd13538ec2e09085fa58112b79d9ec9474939e6dc8e19df642fb07181ed710df24b18b6612e7ae734ada054fb0306a1d56159fa2f48640cccf3e00
   
defc3485c5e0e80322b8782e1706ea9d26e66c2cd766cfc2ae93d60593e502b8ad20c2583c24fbd7e9ef0e964d41a503f80e37f334024c7fc000f6111e69df90
 )
@@ -55,6 +57,9 @@ prepare() {
   # Fix initialization with GTK 4.18
   git apply -3 ../biblioteca-gtk-init.patch
 
+  # Fix passing command-line arguments
+  git apply -3 ../biblioteca-command-line-arguments.patch
+
   # Don't check if running under Flatpak
   git apply -3 ../biblioteca-no-flatpak.patch
 


=====================================
biblioteca-command-line-arguments.patch
=====================================
@@ -0,0 +1,40 @@
+From e2eb7c1195d778cd403195dcafc609a200f42629 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Ball=C3=B3=20Gy=C3=B6rgy?= <[email protected]>
+Date: Mon, 7 Apr 2025 16:24:07 +0200
+Subject: [PATCH] Fix passing command-line arguments
+
+The first argument must be the program name.
+---
+ src/biblioteca | 2 +-
+ src/bin.js     | 4 ++--
+ 2 files changed, 3 insertions(+), 3 deletions(-)
+
+diff --git a/src/biblioteca b/src/biblioteca
+index 5b41a2c..72a8c33 100755
+--- a/src/biblioteca
++++ b/src/biblioteca
+@@ -6,4 +6,4 @@
+ # force app in English see 
https://github.com/workbenchdev/Biblioteca/pull/40#issuecomment-1811380922
+ LANG=en_US.UTF-8
+ 
+-@app_id@
++@app_id@ "$@"
+diff --git a/src/bin.js b/src/bin.js
+index 5dcc3eb..37387b6 100755
+--- a/src/bin.js
++++ b/src/bin.js
+@@ -1,6 +1,6 @@
+ #!@GJS@ -m
+ 
+-import { exit, programArgs } from "system";
++import { exit, programArgs, programInvocationName } from "system";
+ import GLib from "gi://GLib";
+ import { setConsoleLogDomain } from "console";
+ import Xdp from "gi://Xdp";
+@@ -29,5 +29,5 @@ if (__DEV__) {
+ }
+ 
+ const module = await import("resource:///app/drey/Biblioteca/main.js");
+-const exit_code = await module.main(programArgs);
++const exit_code = await module.main([programInvocationName, ...programArgs]);
+ exit(exit_code);



View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/biblioteca/-/commit/d4aa3bf297018c6028e83121f6753e7b9ef79aa1

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


Reply via email to