# Maintainer: 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 pkgname=popcorntime-bin _pkgname=popcorntime pkgver=0.3.10 pkgrel=3 pkgdesc="Stream movies and TV shows from torrents (continuous integration builds)" arch=('i686' 'x86_64') url="https://popcorntime.sh" license=('GPL3') depends=('alsa-lib' 'gconf' 'gtk2' 'nss' 'ttf-font' 'libxtst' 'libnotify' 'desktop-file-utils') provides=('popcorntime' 'popcorn-time-ce') conflicts=('popcorntime') options=('!strip') source=("${_pkgname}.desktop") ## Official releases are lagging behind. Using CI builds instead #source_i686=("https://get.popcorntime.sh/repo/build/Popcorn-Time-${pkgver}-Linux-32.tar.xz") #source_x86_64=("https://get.popcorntime.sh/repo/build/Popcorn-Time-${pkgver}-Linux-64.tar.xz") source_i686=("https://ci.popcorntime.sh/job/Popcorn-Time-Desktop/lastSuccessfulBuild/artifact/build/Popcorn-Time-${pkgver}_linux32.tar.xz") source_x86_64=("https://ci.popcorntime.sh/job/Popcorn-Time-Desktop/lastSuccessfulBuild/artifact/build/Popcorn-Time-${pkgver}_linux64.tar.xz") sha256sums=('4422f21e16176fda697ed0c8a6d1fb6f9dd7c4bc3f3694f9bcc19cbe66630334') sha256sums_i686=('SKIP') sha256sums_x86_64=('SKIP') package() { install -dm755 "${pkgdir}/usr/share/${_pkgname}" install -dm755 "${pkgdir}/usr/bin" # Link to program ln -s "/usr/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 *.tar.xz *.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 '{}' \; }