Doesnt compile due to ts6 incompability.
Workaround, set root and ignore deprecated. Works until ts7 is released.
change build() in PKGBUILD to:
build() {
cd "$_pkgsrc"
mkdir -p pkg
# TypeScript 6 compatibility
grep -q '"rootDir"' tsconfig.json || \
sed -i '/"compilerOptions": {/a\ "rootDir": "./src",' tsconfig.json
grep -q '"ignoreDeprecations"' tsconfig.json || \
sed -i '/"compilerOptions": {/a\ "ignoreDeprecations": "6.0",' tsconfig.json
# krohnkite.js
tsc
install -Dm644 krohnkite.js pkg/contents/code/script.js
# metadata.json
sed -E -e 's&\$VER&'${pkgver}'&' \
-e 's&\$REV&'${pkgver}'&' \
res/metadata.json > pkg/metadata.json
# config
install -Dm644 res/config.xml pkg/contents/config/main.xml
# other files
install -Dm644 res/*.js -t pkg/contents/code/
install -Dm644 res/*.{qml,ui} -t pkg/contents/ui/
}
Pinned Comments
xiota commented on 2024-06-04 09:15 (UTC) (edited on 2024-06-04 09:19 (UTC) by xiota)
Switched to fork supporting KF6. Upstream makefile doesn't work, so files are processed directly.
Flag – if upstream changes break this package. Describe what changed or broke. Include relevant error messages.