summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorj.r2021-02-07 22:22:44 +0100
committerHenri Muitg2021-02-20 08:12:24 +0100
commite25ab6594a19e86acc9b1efac88cc3250c9020de (patch)
treed42078e3502e742567e35c8d8571ae203117ff3e
parent84ee2d029d84fdbcc6468e859ca619c68210f1f0 (diff)
downloadaur-e25ab6594a19e86acc9b1efac88cc3250c9020de.tar.gz
Fix compilation of typescript
-rw-r--r--PKGBUILD13
1 files changed, 10 insertions, 3 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 480d1b443628..ac6a20cf3fa6 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -7,7 +7,7 @@ arch=('any')
url="https://github.com/PapyElGringo/material-shell"
license=('GPL')
depends=('gnome-shell')
-makedepends=('git')
+makedepends=('git' 'npm')
optdepends=('plata-theme: gtk and shell theme'
'tela-icon-theme-git: icon theme'
'ttf-roboto: font')
@@ -20,7 +20,14 @@ pkgver() {
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
+build() {
+ cd material-shell
+ npm install --cache "${srcdir}/npm-cache"
+ make compile
+}
+
package() {
- mkdir -p "$pkgdir/usr/share/gnome-shell/extensions/material-shell@papyelgringo/"
- cp -r material-shell/. "$pkgdir/usr/share/gnome-shell/extensions/material-shell@papyelgringo/"
+ cd material-shell
+ install -d $pkgdir/usr/share/gnome-shell/extensions/material-shell@papyelgringo/
+ cp -r dist/* $pkgdir/usr/share/gnome-shell/extensions/material-shell@papyelgringo/
}