summaryrefslogtreecommitdiff
diff options
authorNathan Pratta Teodosio <nathan.teodosio@canonical.com>2025-01-14 22:30:41 +0100
committerNathan Pratta Teodosio <nathan.teodosio@canonical.com>2025-01-14 22:30:41 +0100
commit38847c3c10d047b62e0b71c9488270b4400cded7 (patch)
tree7a1b628bd605ee67cba58f18dc2544243e9c5cc5
parentd0559dada07622e048feeb8f09856a7e08877de3 (diff)
Pull manpage generation before removal of /src/.
-rw-r--r--snapcraft.yaml23
1 files changed, 12 insertions, 11 deletions
diff --git a/snapcraft.yaml b/snapcraft.yaml
index 9e168f8..e10d306 100644
--- a/snapcraft.yaml
+++ b/snapcraft.yaml
@@ -248,6 +248,18 @@ parts:
"$CRAFT_PROJECT_DIR" \
"$CRAFT_PRIME"
set -u
+
+ # Generate and install the man page (see the "manpage" part)
+ mkdir -p $CRAFT_PART_INSTALL/man1
+ sed \
+ -e "s/@@PACKAGE@@/chromium/g" \
+ -e "s/@@MENUNAME@@/chromium/g" \
+ -e "s:\$HOME/.config:\$SNAP_USER_DATA/.config:g" \
+ -e "s:\$HOME/.cache:\$SNAP_USER_COMMON/.cache:g" \
+ $CRAFT_PART_SRC/chrome/app/resources/manpage.1.in \
+ > $CRAFT_PART_INSTALL/man1/chrome.1
+ gzip -9n $CRAFT_PART_INSTALL/man1/chrome.1
+
rm -rf "$CRAFT_PART_SRC"
# Find all patches that don't apply anymore before running Quilt, as it
@@ -307,17 +319,6 @@ parts:
# Fix setuid bits on the sandbox executable
# (ref: https://forum.snapcraft.io/t/call-for-testing-chromium-snap/1714/16)
chmod 4555 $CRAFT_PART_INSTALL/usr/lib/chromium-browser/chrome-sandbox
-
- # Generate and install the man page (see the "manpage" part)
- mkdir -p $CRAFT_PART_INSTALL/man1
- sed \
- -e "s/@@PACKAGE@@/chromium/g" \
- -e "s/@@MENUNAME@@/chromium/g" \
- -e "s:\$HOME/.config:\$SNAP_USER_DATA/.config:g" \
- -e "s:\$HOME/.cache:\$SNAP_USER_COMMON/.cache:g" \
- $CRAFT_PART_SRC/chrome/app/resources/manpage.1.in \
- > $CRAFT_PART_INSTALL/man1/chrome.1
- gzip -9n $CRAFT_PART_INSTALL/man1/chrome.1
prime:
- -etc/init.d
- -etc/xdg