diff options
author | j.r | 2021-02-07 22:22:44 +0100 |
---|---|---|
committer | Henri Muitg | 2021-02-20 08:12:24 +0100 |
commit | e25ab6594a19e86acc9b1efac88cc3250c9020de (patch) | |
tree | d42078e3502e742567e35c8d8571ae203117ff3e | |
parent | 84ee2d029d84fdbcc6468e859ca619c68210f1f0 (diff) | |
download | aur-e25ab6594a19e86acc9b1efac88cc3250c9020de.tar.gz |
Fix compilation of typescript
-rw-r--r-- | PKGBUILD | 13 |
1 files changed, 10 insertions, 3 deletions
@@ -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/ } |