summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: f2bcabfd0ca83c5afa34057f140e449a6541c7a2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
_name="material-shell"
pkgname="gnome-shell-extension-${_name}"
pkgver="44"
pkgrel="1"
pkgdesc='A modern desktop interface for Linux extending GNOME Shell.'
arch=('any')
url="https://github.com/${_name}/${_name}"
license=('GPL3')
conflicts=("${pkgname}-git")
depends=('gnome-shell')
makedepends=("npm")
optdepends=('plata-theme: GTK and shell theme'
            'tela-icon-theme: icon theme'
            'ttf-roboto: font')
groups=('gnome-shell-extensions')
source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/${pkgver}.tar.gz")
b2sums=("9fa945a71f20c7b7e1012fb738e10bfaccd908cb9de2248cb3a00158ff312723ea01f5b6b9188776a0687ef8e7934b9a56e3ca72c5fa3effa5dda7f1f65e5f9c")

_dir="material-shell-${pkgver}"
_uuid="material-shell@papyelgringo"

build() {
    cd "${srcdir}/${_dir}"
    npm install --cache "${srcdir}/npm-cache"
    make compile
}

package() {
    cd "${srcdir}/${_dir}"
    install -d "${pkgdir}/usr/share/gnome-shell/extensions/${_uuid}/"
    cp -r dist/* "${pkgdir}/usr/share/gnome-shell/extensions/${_uuid}/"
}