summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristoph Fink2020-03-28 17:50:58 +0200
committerChristoph Fink2020-03-28 17:50:58 +0200
commit45af619d789be567e221b3fdd6ff8eacafcf8d5a (patch)
treebc15b5520ff27e8eeb1881700c7ed38aa8574f39
downloadaur-45af619d789be567e221b3fdd6ff8eacafcf8d5a.tar.gz
initial commit
-rw-r--r--.SRCINFO22
-rw-r--r--PKGBUILD73
-rw-r--r--install_node_modules.patch14
3 files changed, 109 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..67733a11cf1
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,22 @@
+pkgbase = gnome-shell-extension-cast-to-tv-git
+ pkgdesc = Cast files to your Chromecast or other devices over local network
+ pkgver = v12.r33.g1483c4e
+ pkgrel = 1
+ url = https://github.com/Rafostar/gnome-shell-extension-cast-to-tv-git
+ arch = x86_64
+ license = GPL
+ makedepends = git
+ makedepends = npm
+ depends = gnome-shell
+ depends = ffmpeg
+ depends = nodejs
+ optdepends = python-nautilus: Nautilus integration
+ provides = gnome-shell-extension-cast-to-tv
+ conflicts = gnome-shell-extension-cast-to-tv
+ source = gnome-shell-extension-cast-to-tv-git::git+https://github.com/Rafostar/gnome-shell-extension-cast-to-tv.git
+ source = install_node_modules.patch
+ sha256sums = SKIP
+ sha256sums = b24fa4e6b04cae500ec267345ac48f9c92452e0d9ad798ac28132984387b98cc
+
+pkgname = gnome-shell-extension-cast-to-tv-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..094bbf1d10a
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,73 @@
+# Maintainer: peippo <christoph+aur@christophfink.com>
+
+pkgname=gnome-shell-extension-cast-to-tv-git
+pkgdesc="Cast files to your Chromecast or other devices over local network"
+_gnomeextensionname="cast-to-tv@rafostar.github.com"
+
+url="https://github.com/Rafostar/$pkgname"
+arch=("x86_64")
+license=("GPL")
+
+pkgver=v12.r33.g1483c4e
+pkgrel=1
+
+provides=("gnome-shell-extension-cast-to-tv")
+conflicts=("gnome-shell-extension-cast-to-tv")
+
+depends=(
+ "gnome-shell"
+ "ffmpeg"
+ "nodejs"
+)
+optdepends=(
+ "python-nautilus: Nautilus integration"
+)
+makedepends=(
+ "git"
+ "npm"
+)
+
+source=(
+ "${pkgname}::git+https://github.com/Rafostar/gnome-shell-extension-cast-to-tv.git"
+ "install_node_modules.patch"
+)
+sha256sums=(
+ "SKIP"
+ "b24fa4e6b04cae500ec267345ac48f9c92452e0d9ad798ac28132984387b98cc"
+)
+
+pkgver() {
+ cd "${pkgname}"
+ git describe --long --always | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
+}
+
+prepare() {
+ cd "${pkgname}"
+ patch --forward --strip=1 --input "${srcdir}/install_node_modules.patch"
+}
+
+package() {
+ cd "${pkgname}"
+
+ npm install --cache "${srcdir}/npm-cache"
+
+ make install PKGDIR="${pkgdir}"
+
+ install \
+ -Ddm755 \
+ "${pkgdir}/usr/share/locale"
+ cp \
+ -aR \
+ locale/* \
+ "${pkgdir}/usr/share/locale/"
+
+ install \
+ -Dm644 \
+ "schemas/org.gnome.shell.extensions.cast-to-tv.gschema.xml" \
+ "${pkgdir}/usr/share/glib-2.0/schemas/org.gnome.shell.extensions.cast-to-tv.gschema.xml"
+
+ install \
+ -Dm644 \
+ nautilus/nautilus-cast-to-tv.py \
+ "$pkgdir/usr/share/nautilus-python/extensions/nautilus-cast-to-tv.py"
+}
diff --git a/install_node_modules.patch b/install_node_modules.patch
new file mode 100644
index 00000000000..d37426ebdb9
--- /dev/null
+++ b/install_node_modules.patch
@@ -0,0 +1,14 @@
+diff --unified --recursive --text a/Makefile b/Makefile
+--- a/Makefile 2020-02-18 20:09:18.000000000 +0200
++++ b/Makefile 2020-03-07 11:53:35.010020726 +0200
+@@ -7,8 +7,8 @@
+ TOLOCALIZE = extension.js widget.js playlist.js file-chooser.js prefs.js node_scripts/messages.js
+ MSGSRC = $(wildcard ./po/cast-to-tv/*.po)
+ POTFILE = ./po/cast-to-tv/cast-to-tv.pot
+-ZIPFILES = *.js *.json node_scripts webplayer schemas locale appIcon nautilus COPYING README.md
+-INSTALLPATH = ~/.local/share/gnome-shell/extensions
++ZIPFILES = *.js *.json node_scripts node_modules webplayer schemas locale appIcon nautilus COPYING README.md
++INSTALLPATH = $(PKGDIR)/usr/share/gnome-shell/extensions
+
+ # Add-ons translations #
+ POFOLDERS = $(wildcard ./po/cast-to-tv-*-addon)