Package Details: gnome-shell-extension-gtile 59-1

Git Clone URL: https://aur.archlinux.org/gnome-shell-extension-gtile.git (read-only, click to copy)
Package Base: gnome-shell-extension-gtile
Description: A window tiling extension for GNOME Shell
Upstream URL: https://github.com/gTile/gTile
Licenses: GPL-2.0-or-later
Submitter: gromit
Maintainer: yochananmarqos
Last Packager: yochananmarqos
Votes: 1
Popularity: 0.53
First Submitted: 2024-03-20 14:48 (UTC)
Last Updated: 2024-03-23 14:48 (UTC)

Latest Comments

falstaff_ch commented on 2024-03-27 08:26 (UTC)

As is, fails for me with:

> gnome-shell-extension-gtile@1.0.0 clean
> git clean -qxf ':/dist/*.js' gtile.dist.tgz

fatal: not a git repository (or any parent up to mount point /)
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).
==> ERROR: A failure occurred in build().
    Aborting...

Using this patch

diff --git a/package.json b/package.json
index d6c2e71..3303d27 100644
--- a/package.json
+++ b/package.json
@@ -23,7 +23,7 @@
     "typescript": "^5.3.3"
   },
   "scripts": {
-    "clean": "git clean -qxf ':/dist/*.js' gtile.dist.tgz",
+    "clean": "if [ -d .git ]; then git clean -qxf ':/dist/*.js' gtile.dist.tgz; fi",
     "postclean": "find dist -type d -empty -exec rmdir -p --ignore-fail-on-non-empty {} +",
     "prebuild": "$npm_execpath run clean",
     "build": "tsc",

And the changes suggested by superhansel work for me.

superhansel commented on 2024-03-23 22:24 (UTC)

Nice to see this package back to being maintained.

There are a few things I noticed that could be improved:

  1. The build() function in the PKGBUILD builds the package twice (npm run build and then again npm run build:dist)
  2. The build() function calls npm install. A clean install (npm ci) would speed things up and would also adhere to the build process that gTile uses for its own published releases.
  3. The package() function removes a directory that is no longer shipped with the extension (${_uuid}/schemas)