blob: 433d8b53dbd4bf5f716b8e5e3b040e9b0b66279d (
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
|
pkgname=netflix
_pkgname=Netflix
pkgver=1.0.8
pkgrel=2
pkgdesc="Unnofficial Netflix desktop application"
arch=('x86_64')
url="https://gitlab.com/linuxbombay/netflix-desktop"
license=('GPL')
conflicts=("Netflix-bin")
replace=("Netflix-bin")
depends=('libelectron' 'nss' 'gtk3' 'libxss' 'git')
source=("$url/application/-/archive/$pkgver/application-$pkgver.tar.bz2")
sha256sums=('3b45e738baa24dfc126d7a840201205f9e46a25bcbbb02531929dea9edf2fab5')
package() {
for dir in application-$pkgver ; do mv "${dir}" "$_pkgname" ;done
cd "$srcdir/$_pkgname"
chmod +x $pkgname
ln -sf "/opt/libelectron/node_modules" "$srcdir/$_pkgname"
install -dm755 "$pkgdir/opt/$_pkgname"
install -dm755 "$pkgdir/usr/share/pixmaps"
cp -r ./ "$pkgdir/opt/$_pkgname"
cp -r "$pkgdir/opt/$_pkgname/$pkgname.svg" "$pkgdir/usr/share/pixmaps"
# Link to binary
install -dm755 "$pkgdir/usr/bin"
ln -s "/opt/$_pkgname/$pkgname" "$pkgdir/usr/bin/$pkgname"
# Desktop Entry
install -Dm644 "$srcdir/$_pkgname/$pkgname.desktop" \
"$pkgdir/usr/share/applications/$pkgname.desktop"
sed -i s%/usr/share%/opt% "$pkgdir/usr/share/applications/$pkgname.desktop"
}
|