summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorNeil Simpson2020-04-10 21:46:42 -0400
committerNeil Simpson2020-04-10 21:46:42 -0400
commit9db8f52602c54706158495a35f1ad88f6327b56f (patch)
tree2d7b341b6aa2969e97c2c2f0908e4f0d900f69ff
downloadaur-9db8f52602c54706158495a35f1ad88f6327b56f.tar.gz
Init commit - v2.11.0
-rw-r--r--.SRCINFO24
-rw-r--r--.gitignore4
-rw-r--r--PKGBUILD42
-rw-r--r--magicmirror.desktop8
-rw-r--r--magicmirror.pngbin0 -> 6610 bytes
-rw-r--r--magicmirror.sh4
6 files changed, 82 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..faf6b6a0f8b
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,24 @@
+pkgbase = magicmirror
+ pkgdesc = Open source modular smart mirror platform.
+ pkgver = 2.11.0
+ pkgrel = 1
+ url = https://magicmirror.builders/
+ arch = x86_64
+ license = MIT
+ makedepends = git
+ makedepends = npm
+ depends = gtk3
+ depends = libxss
+ depends = nodejs
+ depends = nss
+ source = https://github.com/MichMich/MagicMirror/archive/v2.11.0.tar.gz
+ source = magicmirror.desktop
+ source = magicmirror.png
+ source = magicmirror.sh
+ sha256sums = a014f9b5b6952e0b12a178f9896ae5c99166abfda15d94f28ec20376adcbca89
+ sha256sums = 44d4754359eea4f95f506a05a8eeeb849a5a1c79d22085f7a49e20f4cb248cc6
+ sha256sums = 8b863c41ab31114c92e060fa724e1ef63d4023cd534dafa96d49e943c346959c
+ sha256sums = 0595927a2b55ac88403f495afd413e32e72ada9262e0c709b96c7e62453fb039
+
+pkgname = magicmirror
+
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000000..93f5d9f2777
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,4 @@
+pkg/
+src/
+*.tar.gz
+*.tar.xz
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..0b0fd539a79
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,42 @@
+# Maintainer: Neil Simpson <neilsimp1@gmail.com>
+
+pkgname=magicmirror
+_pkgname=MagicMirror
+pkgver=2.11.0
+pkgrel=1
+pkgdesc="Open source modular smart mirror platform."
+arch=("x86_64")
+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=("a014f9b5b6952e0b12a178f9896ae5c99166abfda15d94f28ec20376adcbca89"
+ "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
+}
diff --git a/magicmirror.desktop b/magicmirror.desktop
new file mode 100644
index 00000000000..533dd5ae158
--- /dev/null
+++ b/magicmirror.desktop
@@ -0,0 +1,8 @@
+[Desktop Entry]
+Name=MagicMirror
+Description=MagicMirror is an open source modular smart mirror platform. With a growing list of installable modules, the MagicMirror² allows you to convert your hallway or bathroom mirror into your personal assistant. MagicMirror² is built by the creator of the original MagicMirror with the incredible help of a growing community of contributors.
+Exec=magicmirror
+Terminal=false
+Type=Application
+Icon=/usr/share/icons/magicmirror.png
+Categories=Office;Utilities;
diff --git a/magicmirror.png b/magicmirror.png
new file mode 100644
index 00000000000..11926ce50bc
--- /dev/null
+++ b/magicmirror.png
Binary files differ
diff --git a/magicmirror.sh b/magicmirror.sh
new file mode 100644
index 00000000000..07e78862dcc
--- /dev/null
+++ b/magicmirror.sh
@@ -0,0 +1,4 @@
+#!/bin/sh
+
+cd /usr/share/magicmirror
+npm start