blob: 7f289b4f3f865a1e38c41470e41ee12ed6f3a3bd (
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
|
# Maintainer: Ricardo Funke <ricardo [at] gmail [dot] com>
# Contributor: Attila Bukor <r1pp3rj4ck [at] w4it [dot] eu>
# Contributor: Iwan Timmer <irtimmer [at] gmail [dot] com>
# Contributor: Eric Engestrom <aur [at] engestrom [dot] ch>
# Contributor: Ricardo Band <me [at] xengi [dot] de>
# Contributor: Axilleas Pipinellis (aka axil42) <axilleas [at] archlinux [dot] info>
# Contributor: UshakovVasilii <UshakovVasilii [at] yahoo [dot] com>
# Contributor: Giulio Fidente <gfidente [at] gmail [dot] com>
# Contributor: xantares <xantares09 [at] hotmail [dot] com>
# Contributor: petterk <stifler3k [at] hotmail [dot] com>
pkgname=popcorntime-bin
pkgver=0.3.8.5
_pkgver='0.3.8-5'
pkgrel=2
pkgdesc="Stream movies from torrents. Skip the downloads. Launch, click, watch."
arch=('x86_64' 'i686')
url="http://popcorntime.io/"
license=('GPL3')
depends=('libnotify' 'desktop-file-utils' 'ttf-font' 'gconf' 'nss' 'libxtst' 'gtk2' 'alsa-lib')
optdepends=('net-tools: necessary for the new vpn feature' 'ttf-liberation: open source ttf fonts')
provides=('popcorntime')
conflicts=('popcorntime')
options=('!strip')
install="popcorntime.install"
sha1sums=('fcd6044861cfb78587d9b6e9590c0872144045c6'
'd2e56426a321faabd316ea0bc89b2fa2fb0dfa48'
'98cba5c0c979d37e601cc33cf3b562f106427d36')
_platform='Linux-64'
if [ "$CARCH" = 'i686' ]; then
_platform='Linux-32'
sha1sums[0]='ec994d8a0420857018aabf8555926b0a6d43a1f1'
fi
source=("http://get.popcorntime.io/build/Popcorn-Time-${_pkgver}-${_platform}.tar.xz"
"popcorntime.install"
"popcorntime.desktop")
package() {
cd "${srcdir}"
install -dm755 "${pkgdir}/opt/${pkgname}/"
install -dm755 "${pkgdir}/usr/bin"
install -dm755 "${pkgdir}/usr/share"
# Program
echo "${pkgdir}/opt/${pkgname}/"
install -Dm755 "${srcdir}/Popcorn-Time" "${pkgdir}/opt/${pkgname}/"
install -Dm644 "${srcdir}/nw.pak" "${pkgdir}/opt/${pkgname}/"
install -Dm644 "${srcdir}/libffmpegsumo.so" "${pkgdir}/opt/${pkgname}/"
# install -Dm644 "${srcdir}/CHANGELOG.md" "${pkgdir}/opt/${pkgname}/"
install -Dm644 "${srcdir}/icudtl.dat" "${pkgdir}/opt/${pkgname}/"
install -Dm644 "${srcdir}/install" "${pkgdir}/opt/${pkgname}/"
# install -Dm644 "${srcdir}/LICENSE.txt" "${pkgdir}/opt/${pkgname}/"
# install -Dm644 "${srcdir}/package.json" "${pkgdir}/opt/${pkgname}/"
install -Dm644 "${srcdir}/package.nw" "${pkgdir}/opt/${pkgname}/"
install -Dm644 "${srcdir}/popcorntime.png" "${pkgdir}/opt/${pkgname}/"
# install -Dm644 "${srcdir}/README.md" "${pkgdir}/opt/${pkgname}/"
# Directories
cp -a "${srcdir}/locales" "${pkgdir}/opt/${pkgname}/"
# cp -a "${srcdir}/node_modules" "${pkgdir}/opt/${pkgname}/"
# cp -a "${srcdir}/src" "${pkgdir}/opt/${pkgname}/"
# Link to program
ln -s "/opt/${pkgname}/Popcorn-Time" "${pkgdir}/usr/bin/popcorntime"
# Desktop file
install -Dm644 "${srcdir}/popcorntime.desktop" "${pkgdir}/usr/share/applications/popcorntime.desktop"
# Icon
install -Dm644 "${srcdir}/popcorntime.png" "${pkgdir}/usr/share/pixmaps/popcorntime.png"
}
|