blob: ed4d1788b35ee83241c86f8a499d9cd6b5ab87d6 (
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
33
34
35
36
37
38
39
40
41
42
|
# Maintainer: Neil Simpson <neilsimp1@gmail.com>
pkgname=magicmirror
_pkgname=MagicMirror
pkgver=2.22.0
pkgrel=1
pkgdesc="Open source modular smart mirror platform."
arch=("any")
url="https://magicmirror.builders/"
license=("MIT")
depends=("gtk3" "libxss" "nodejs" "nss")
makedepends=("git" "npm")
source=("https://github.com/MichMich/$_pkgname/archive/v$pkgver.tar.gz"
"magicmirror.desktop"
"magicmirror.png"
"magicmirror.sh")
sha256sums=("66a735b17151ff7345f0c1bbfd2c70295ecd6c37823e79137f5823fe9c73a838"
"44d4754359eea4f95f506a05a8eeeb849a5a1c79d22085f7a49e20f4cb248cc6"
"8b863c41ab31114c92e060fa724e1ef63d4023cd534dafa96d49e943c346959c"
"0595927a2b55ac88403f495afd413e32e72ada9262e0c709b96c7e62453fb039")
build() {
cd "$srcdir/$_pkgname-$pkgver"
npm install --cache "${srcdir}/npm-cache" --only=prod
cp config/config.js.sample config/config.js
}
package() {
cd "$srcdir"
install -Dm 644 magicmirror.desktop "$pkgdir"/usr/share/applications/magicmirror.desktop
install -Dm 644 magicmirror.png "$pkgdir"/usr/share/icons/magicmirror.png
install -Dm 755 magicmirror.sh "$pkgdir"/usr/bin/$pkgname
mkdir "$pkgdir"/usr/share/$pkgname
cp -R "$_pkgname-$pkgver"/* "$pkgdir"/usr/share/$pkgname
cd "$_pkgname-$pkgver"
install -Dm 644 LICENSE.md -t "$pkgdir"/usr/share/licenses/$pkgname
}
|