diff options
author | Wilhelm Schuster | 2022-11-01 20:20:21 +0100 |
---|---|---|
committer | Wilhelm Schuster | 2022-11-01 20:20:21 +0100 |
commit | b41a24e30f065bfe8c187fdfeb26a030404871bc (patch) | |
tree | 52c1a47db86f8b7d26a811a7648193c5d2a0c6bc | |
parent | 795bd055a2b2cea2495da53580ca8fce36389971 (diff) | |
download | aur-b41a24e30f065bfe8c187fdfeb26a030404871bc.tar.gz |
Use vite for building and remove npm workaround
-rw-r--r-- | .SRCINFO | 2 | ||||
-rw-r--r-- | PKGBUILD | 8 |
2 files changed, 3 insertions, 7 deletions
@@ -1,6 +1,6 @@ pkgbase = fluidd-git pkgdesc = Klipper web frontend - pkgver = r1053.003c25a + pkgver = r1332.f14173f2 pkgrel = 1 url = https://docs.fluidd.xyz/ arch = any @@ -1,7 +1,7 @@ # Maintainer: Wilhelm Schuster <aur [aT] rot13 dot io> pkgname=fluidd-git _pkgname="${pkgname%-git}" -pkgver=r1053.003c25a +pkgver=r1332.f14173f2 pkgrel=1 pkgdesc="Klipper web frontend" arch=(any) @@ -28,7 +28,7 @@ build() { cd "$srcdir/$_pkgname" npm install --no-update-notifier --no-audit --cache "${srcdir}/npm-cache" - ./node_modules/.bin/vue-cli-service build + ./node_modules/.bin/vite build } package() { @@ -37,10 +37,6 @@ package() { install -dm755 "${pkgdir}/usr/share/webapps" cp -r dist "$pkgdir/usr/share/webapps/${_pkgname}" - # Non-deterministic race in npm gives 777 permissions to random directories. - # See https://github.com/npm/cli/issues/1103 for details. - find "${pkgdir}/usr" -type d -exec chmod 755 {} + - # npm gives ownership of ALL FILES to build user # https://bugs.archlinux.org/task/63396 chown -R root:root "${pkgdir}" |