# Maintainer: Yigit Sever # Contributor : Barfin # Contributor: Kostis Karantias # Contributor: Pieter Goetschalckx <3.14.e.ter [at] gmail [dot] com> # Contributor: Bastien Traverse # Contributor: 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 # Contributor: petterk # Contributor: Stephan Springer pkgname=popcorntime-bin _pkgname=popcorntime pkgver=0.4.9 pkgrel=1 pkgdesc="Stream free movies and TV shows from torrents" arch=('x86_64') url="https://github.com/popcorn-official/popcorn-desktop" license=('GPL3') depends=('nss' 'ttf-font' 'libxss' 'gtk3') makedepends=('unzip') provides=('popcorntime' 'popcorntime-ce') conflicts=('popcorntime' 'popcorntime-ce') options=('!strip') _zipfile="Popcorn-Time-${pkgver}-linux64.zip" source=("https://github.com/popcorn-official/popcorn-desktop/releases/download/v${pkgver}/$_zipfile" "${_pkgname}.desktop" ) sha256sums=('fcf9c4d6ccd4fccaf7668707b16dcdd78d043b2d4f2a049f0edaf7afd8bb34f1' '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 "$_zipfile" "${_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 '{}' \; } sha256sums=('71b28be5b8307990ffc9f8bff0a4b42fb45a85af0f4c7a889b8a923c589d8d47' '4422f21e16176fda697ed0c8a6d1fb6f9dd7c4bc3f3694f9bcc19cbe66630334')