diff options
author | j.r | 2021-02-07 22:22:44 +0100 |
---|---|---|
committer | Henri Muitg | 2021-02-20 08:17:48 +0100 |
commit | d395ca60bdbd6b1728ae639c9d8708d2b5f0a334 (patch) | |
tree | 9aaae786a7cf1b2784db2a67b263a5d4fe5e0101 | |
parent | d1111abf08ca316aa81b94b445c1e843f76f7f22 (diff) | |
download | aur-d395ca60bdbd6b1728ae639c9d8708d2b5f0a334.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' 'python2') 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/ } |