blob: d362180a1cbb0ca63a0011fbfc6b105648cd835d (
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
|
# 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/gnome-shell-extension-cast-to-tv"
arch=("x86_64")
license=("GPL2")
pkgver=v12.r33.g1483c4e
pkgrel=4
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 \
"README.md" \
"${pkgdir}/usr/share/doc/${pkgname}/README.md"
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"
# Non-deterministic race in npm gives 777 permissions to random directories.
# See https://github.com/npm/npm/issues/9359 for details.
find "${pkgdir}/usr" -type d -exec chmod 755 {} +
# npm gives ownership of ALL FILES to build user
# https://bugs.archlinux.org/task/63396
chown -R root:root "${pkgdir}"
}
|