Package Details: stickerpicker-git r78.99ced88-1

Git Clone URL: https://aur.archlinux.org/stickerpicker-git.git (read-only, click to copy)
Package Base: stickerpicker-git
Description: Element sticker picker widget
Upstream URL: https://github.com/maunium/stickerpicker
Keywords: matrix
Licenses: AGPL3
Conflicts: stickerpicker
Provides: stickerpicker
Submitter: xiretza
Maintainer: xiretza
Last Packager: xiretza
Votes: 2
Popularity: 0.45
First Submitted: 2022-05-23 17:52 (UTC)
Last Updated: 2022-05-23 17:52 (UTC)

Latest Comments

00ein00 commented on 2025-08-25 11:23 (UTC) (edited on 2025-08-25 12:30 (UTC) by 00ein00)

The build fails in prepare() because the patch 0001-Change-default-dirs-to-point-to-package-directories.patch no longer applies cleanly to the upstream sticker/stickerimport.py (hunk fails). The patch expected two constants to exist:

DEFAULT_CONFIG_FILE = "/etc/webapps/stickerpicker/config.json"
DEFAULT_PACK_DIR = "/var/lib/stickerpicker/packs/"

They’re missing in some upstream versions, so the patch hunk fails.

Some basic instructions to fix:

1. insert the two defaults right after the import line:

awk '1; /from .lib import matrix, util/ { print ""; print "DEFAULT_CONFIG_FILE = \"/etc/webapps/stickerpicker/config.json\""; print "DEFAULT_PACK_DIR = \"/var/lib/stickerpicker/packs/\""; }' \
  src/stickerpicker/sticker/stickerimport.py > /tmp/stickerimport.py && \
  mv /tmp/stickerimport.py src/stickerpicker/sticker/stickerimport.py

2. remove any .rej and build

rm -f src/stickerpicker/sticker/stickerimport.py.rej
updpkgsums
makepkg -sir

This will add the two lines the patch expects and allow makepkg to proceed.