Package Details: kwin-scripts-krohnkite 0.9.9.2-4

Git Clone URL: https://aur.archlinux.org/kwin-scripts-krohnkite.git (read-only, click to copy)
Package Base: kwin-scripts-krohnkite
Description: A dynamic tiling extension for KWin
Upstream URL: https://codeberg.org/anametologin/krohnkite
Licenses: MIT
Submitter: matthewq337
Maintainer: matthewq337
Last Packager: matthewq337
Votes: 5
Popularity: 0.016031
First Submitted: 2025-06-17 20:05 (UTC)
Last Updated: 2026-06-04 03:02 (UTC)

Latest Comments

1 2 Next › Last »

matthewq337 commented on 2026-06-04 03:14 (UTC)

@lyk fixed, thanks

lyk commented on 2026-05-28 12:53 (UTC) (edited on 2026-05-28 14:28 (UTC) by lyk)

The current PKGBUILD builds from the source tarball and calls the system tsc. This now fails on Arch because the repo package typescript is 6.x, while upstream still uses outFile in tsconfig.json.

Related Issue: https://codeberg.org/anametologin/Krohnkite/issues/32

Upstream already publishes a prebuilt .kwinscript artifact for this release:

https://codeberg.org/anametologin/Krohnkite/releases/download/0.9.9.2/krohnkite.kwinscript

I think the more AUR-friendly fix is to package that release artifact directly instead of pulling TypeScript 5 through npm/npx or patching tsconfig.json temporarily. This avoids a build-time TypeScript dependency entirely.

I tested this locally and makepkg -f succeeds.

Suggested PKGBUILD change:

diff --git a/PKGBUILD b/PKGBUILD
index aae9cdb..2294c47 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -8,35 +8,15 @@ url="https://codeberg.org/anametologin/krohnkite"
 license=('MIT')
 arch=('any')

-makedepends=(
-  'typescript'
+source=(
+  "https://codeberg.org/anametologin/Krohnkite/releases/download/$pkgver/$_pkgname.kwinscript"
+  "https://codeberg.org/anametologin/Krohnkite/archive/$pkgver.tar.gz"
+)
+noextract=("$_pkgname.kwinscript")
+sha256sums=(
+  '42f7f66531d366c74b5fc860381da3517ccb4cdccd1f80c122fcab6e9a8fcf7e'
+  '618a5d7b6b552026b6ed4db62422f3ec82969e989d4b5d9c816c405e4924e138'
 )
-source=("https://codeberg.org/anametologin/krohnkite/archive/$pkgver.tar.gz")
-sha256sums=('618a5d7b6b552026b6ed4db62422f3ec82969e989d4b5d9c816c405e4924e138')
-
-
-build() {
-  mkdir -p pkg
-  cd "$srcdir/$_pkgname"
-
-  # krohnkite.js
-  tsc
-  install -Dm644 krohnkite.js ../pkg/contents/code/script.js
-
-  # metadata.json
-  install -Dm644 res/metadata.json ../pkg/metadata.json
-  sed -E -e 's&\$VER&'${pkgver}'&' \
-    -e 's&\$REV&'${pkgver}'&' \
-    -i ../pkg/metadata.json
-
-  # other files
-  install -Dm644 res/main.js ../pkg/contents/code/main.js
-  install -Dm644 res/config.xml ../pkg/contents/config/main.xml
-  install -Dm644 res/config.ui ../pkg/contents/ui/config.ui
-  install -Dm644 res/main.qml ../pkg/contents/ui/main.qml
-  install -Dm644 res/popup.qml ../pkg/contents/ui/popup.qml
-  install -Dm644 res/shortcuts.qml ../pkg/contents/ui/shortcuts.qml
-}

 package() {
   depends+=(
@@ -44,7 +24,8 @@ package() {
   )

   install -dm755 "$pkgdir/usr/share/kwin/scripts/$_pkgname"
-  cp -ra "pkg/." "$pkgdir/usr/share/kwin/scripts/$_pkgname/"
+  bsdtar --no-same-owner -xf "$srcdir/$_pkgname.kwinscript" \
+    -C "$pkgdir/usr/share/kwin/scripts/$_pkgname"

   install -Dm644 "$srcdir/$_pkgname/LICENSE" -t "$pkgdir/usr/share/licenses/$pkgname/"
 }

This keeps the package aligned with the upstream release artifact and avoids depending on whichever TypeScript major version happens to be in the Arch repos.

jcruz commented on 2026-02-17 12:29 (UTC)

Thanks @matthewq337 for your work!

matthewq337 commented on 2026-02-17 05:28 (UTC)

@llamaspider @jcruz @donko3005 fixed, thanks

jcruz commented on 2026-02-15 16:48 (UTC)

Thanks llamaspider. shouldn't that be updated in the PKGBUILD by the maintainer?

llamaspider commented on 2026-01-22 10:01 (UTC) (edited on 2026-01-22 10:02 (UTC) by llamaspider)

@donko3005 to fix:

In the build() function, change line 20 from: cd "$_pkgname-$pkgver"

to:

cd "$srcdir/$_pkgname"

In the package() function, change line 43 (the last install line) from: install -Dm644 "$srcdir/$_pkgname-$pkgver/LICENSE" -t "$pkgdir/usr/share/licenses/$pkgname/"

to:

install -Dm644 "$srcdir/$_pkgname/LICENSE" -t "$pkgdir/usr/share/licenses/$pkgname/"

donko3005 commented on 2026-01-20 23:07 (UTC)

error during upgrade of new version of krohnkite:

PKGBUILD: línea 20: cd: krohnkite-0.9.9.2: No existe el fichero o el directorio

matthewq337 commented on 2026-01-20 20:27 (UTC)

@evelyn fixed, thanks

evelyn commented on 2026-01-15 23:31 (UTC) (edited on 2026-01-17 04:27 (UTC) by evelyn)

Hello! I flagged this as out of date, since the upstream URL has been changed to https://codeberg.org/anametologin/Krohnkite as of December and the Github repo is unlikely to be unarchived.

matthewq337 commented on 2025-06-21 05:20 (UTC)

@curiositas_felis fixed, thanks