From c31fcf2dcf98aab82ce456681c197a5d7861d80c Mon Sep 17 00:00:00 2001 From: ricardofunke Date: Sun, 21 Jun 2015 11:39:32 -0300 Subject: Initial import --- .SRCINFO | 30 +++++++++++++++++++++++++ PKGBUILD | 63 ++++++++++++++++++++++++++++++++++++++++++++++++++++ icon.png | Bin 0 -> 81183 bytes popcorntime.desktop | 8 +++++++ popcorntime.install | 13 +++++++++++ 5 files changed, 114 insertions(+) create mode 100644 .SRCINFO create mode 100644 PKGBUILD create mode 100644 icon.png create mode 100644 popcorntime.desktop create mode 100644 popcorntime.install diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 0000000..9d163a9 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,30 @@ +pkgbase = popcorntime-bin + pkgdesc = Stream movies from torrents. Skip the downloads. Launch, click, watch. + pkgver = 0.3.7.2 + pkgrel = 3 + url = http://popcorntime.io/ + install = popcorntime.install + arch = x86_64 + arch = i686 + license = GPL3 + depends = ttf-liberation + depends = gconf + depends = nss + depends = libxtst + depends = gtk2 + depends = alsa-lib + optdepends = net-tools: necessary for the new vpn feature + provides = popcorntime + conflicts = popcorntime + options = !strip + source = http://get.popcorntime.io/build/Popcorn-Time-0.3.7.2-Linux64.tar.xz + source = icon.png + source = popcorntime.install + source = popcorntime.desktop + sha256sums = 0b294d08e6bc46d3d06717d4a6344b4e6e4e14f742f61101b8498d931d99a952 + sha256sums = 9e1bc552bb06446689233b1a123d4cc421771673a7b803a980d4149bf4dc38b3 + sha256sums = ac2b7183d3ea62ae821c7d1f4b243b0ca41c7838efa16babe29cad0c4958ee25 + sha256sums = 3dd794302ad0b3a98d48973175b6de9bc632181872df2d0376a19a5cc0aa14a2 + +pkgname = popcorntime-bin + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..d581031 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,63 @@ +# Maintainer: Ricardo Funke +# Contributor: Attila Bukor +# Contributor: Iwan Timmer +# Contributor: Eric Engestrom +# Contributor: Ricardo Band +# Contributor: Axilleas Pipinellis (aka axil42) +# Contributor: UshakovVasilii +# Contributor: Giulio Fidente +# Contributor: xantares + +pkgname=popcorntime-bin +pkgver=0.3.7.2 +pkgrel=3 +pkgdesc="Stream movies from torrents. Skip the downloads. Launch, click, watch." +arch=('x86_64' 'i686') +url="http://popcorntime.io/" +license=('GPL3') +depends=('ttf-liberation' 'gconf' 'nss' 'libxtst' 'gtk2' 'alsa-lib') +optdepends=('net-tools: necessary for the new vpn feature') +provides=('popcorntime') +conflicts=('popcorntime') +options=('!strip') +install="popcorntime.install" +sha256sums=('0b294d08e6bc46d3d06717d4a6344b4e6e4e14f742f61101b8498d931d99a952' + '9e1bc552bb06446689233b1a123d4cc421771673a7b803a980d4149bf4dc38b3' + 'ac2b7183d3ea62ae821c7d1f4b243b0ca41c7838efa16babe29cad0c4958ee25' + '3dd794302ad0b3a98d48973175b6de9bc632181872df2d0376a19a5cc0aa14a2') + +_platform=Linux64 + +if [ "$CARCH" = 'i686' ]; then + _platform=Linux32 + sha256sums[0]='21e5dbc667f13572fcd8edc535ce4fcd2c0bffafcd237753ad8a2f1cc665e1b7' +fi + +source=("http://get.popcorntime.io/build/Popcorn-Time-${pkgver}-${_platform}.tar.xz" + "icon.png" + "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}/package.nw "${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}/icon.png" "${pkgdir}/usr/share/pixmaps/popcorntime.png" +} diff --git a/icon.png b/icon.png new file mode 100644 index 0000000..3ea5010 Binary files /dev/null and b/icon.png differ diff --git a/popcorntime.desktop b/popcorntime.desktop new file mode 100644 index 0000000..f8f223b --- /dev/null +++ b/popcorntime.desktop @@ -0,0 +1,8 @@ +[Desktop Entry] +Name=Popcorn Time +Comment=Watch torrent movies instantly +Exec=popcorntime %U +Icon=popcorntime +Terminal=false +Type=Application +Categories=Player;Video;Network; diff --git a/popcorntime.install b/popcorntime.install new file mode 100644 index 0000000..55a36e4 --- /dev/null +++ b/popcorntime.install @@ -0,0 +1,13 @@ +post_install() { + echo + echo "WARNING: Popcorn Time streams movies from Torrents" + echo "Downloading copyrighted material may be illegal in your country!" + echo "Use at your own risk!" + echo +} + +post_upgrade() { + post_install +} + +# vim:set ts=2 sw=2 et: -- cgit v1.2.3-70-g09d2