summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO25
-rw-r--r--PKGBUILD56
-rw-r--r--popcorntime.desktop9
3 files changed, 90 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..86a09c0457a
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,25 @@
+pkgbase = popcorntime-bin-ci
+ pkgdesc = A multi-platform, free software BitTorrent client that includes an integrated media player - latest dev build from CI artefact
+ pkgver = 0.4.4
+ pkgrel = 1
+ url = https://popcorntime.app/
+ arch = x86_64
+ license = GPL3
+ makedepends = unzip
+ depends = gtk3
+ depends = libxss
+ depends = nss
+ depends = ttf-font
+ provides = popcorntime
+ provides = popcorntime-ce
+ conflicts = popcorntime
+ conflicts = popcorntime-ce
+ conflicts = popcorntime-bin
+ options = !strip
+ source = https://ci.popcorntime.app/job/Popcorn-Time-Desktop/lastSuccessfulBuild/artifact/build/Popcorn-Time-0.4.4_linux64.zip
+ source = popcorntime.desktop
+ sha256sums = SKIP
+ sha256sums = 4422f21e16176fda697ed0c8a6d1fb6f9dd7c4bc3f3694f9bcc19cbe66630334
+
+pkgname = popcorntime-bin-ci
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..2cd98a3d138
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,56 @@
+# Maintainer: Neitsab Esrevart <firstname at lastname dot net>
+# Contributor: Stephan Springer <buzo+arch@Lini.de>
+# Contributor: Kostis Karantias <kkarantias [at] gmail [dot] com>
+# Contributor: Pieter Goetschalckx <3.14.e.ter [at] gmail [dot] com>
+# Contributor: 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-ci
+_pkgname=popcorntime
+pkgver=0.4.4
+pkgrel=1
+pkgdesc="A multi-platform, free software BitTorrent client that includes an integrated media player - latest dev build from CI artefact"
+arch=('x86_64')
+url="https://popcorntime.app/"
+license=('GPL3')
+depends=('gtk3' 'libxss' 'nss' 'ttf-font')
+makedepends=('unzip')
+provides=('popcorntime' 'popcorntime-ce')
+conflicts=('popcorntime' 'popcorntime-ce' 'popcorntime-bin')
+options=('!strip')
+source=("https://ci.popcorntime.app/job/Popcorn-Time-Desktop/lastSuccessfulBuild/artifact/build/Popcorn-Time-${pkgver}_linux64.zip"
+ "${_pkgname}.desktop" )
+sha256sums=('SKIP'
+ '4422f21e16176fda697ed0c8a6d1fb6f9dd7c4bc3f3694f9bcc19cbe66630334')
+
+package() {
+ install -dm755 "${pkgdir}/usr/share/${_pkgname}"
+ install -dm755 "${pkgdir}/usr/bin"
+
+ # Link to program
+ ln -s "../share/${_pkgname}/Popcorn-Time" "${pkgdir}/usr/bin/${_pkgname}"
+
+ # Desktop file
+ install -Dm644 "${_pkgname}.desktop" "${pkgdir}/usr/share/applications/${_pkgname}.desktop"
+
+ # Icon
+ install -Dm644 "${srcdir}/src/app/images/icon.png" "${pkgdir}/usr/share/icons/hicolor/256x256/apps/${_pkgname}.png"
+
+ # Remove makepkg-created symlinks before copying content
+ rm "Popcorn-Time-${pkgver}_linux64.zip" "${_pkgname}.desktop"
+
+ # Copy complete content of source archive to /usr/share/${_pkgname}
+ cp -a "${srcdir}"/* "${pkgdir}/usr/share/${_pkgname}"
+
+ # Fix permissions
+ find "${pkgdir}/usr/share/${_pkgname}/" -perm 600 -exec chmod 644 '{}' \;
+ find "${pkgdir}/usr/share/${_pkgname}/" -perm 700 -exec chmod 755 '{}' \;
+}
diff --git a/popcorntime.desktop b/popcorntime.desktop
new file mode 100644
index 00000000000..3b39b6356a0
--- /dev/null
+++ b/popcorntime.desktop
@@ -0,0 +1,9 @@
+[Desktop Entry]
+Name=Popcorn Time
+Comment=Watch Movies and TV Shows instantly
+Exec=popcorntime %U
+Icon=popcorntime
+MimeType=application/x-bittorrent;x-scheme-handler/magnet;
+StartupNotify=false
+Categories=AudioVideo;Video;Network;Player;P2P;
+Type=Application