# Maintainer: Pieter Goetschalckx <3.14.e.ter [at] gmail [dot] com> # 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.9 pkgrel=2 pkgdesc="Stream movies and TV shows from torrents" 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') install=popcorntime.install [ "$CARCH" = "i686" ] && _platform='Linux-32' [ "$CARCH" = "x86_64" ] && _platform='Linux-64' source=("https://get.popcorntime.sh/build/Popcorn-Time-${pkgver}-${_platform}.tar.xz" "${_pkgname}.desktop") sha256sums=('f2c29632488e5052c8b29df4cfdfc532a4f3984a9b8e654441bb37ad312591a1' '4422f21e16176fda697ed0c8a6d1fb6f9dd7c4bc3f3694f9bcc19cbe66630334') [ "$CARCH" = "i686" ] && _platform=linux32 [ "$CARCH" = "x86_64" ] && _platform=linux64 package() { _bpath="${_platform}" install -dm755 "${pkgdir}/usr/share/${_pkgname}" install -dm755 "${pkgdir}/usr/bin" # Program install -Dm755 "${_bpath}/Popcorn-Time" "${pkgdir}/usr/share/${_pkgname}/" install -Dm644 "${_bpath}/"{icudtl.dat,libffmpegsumo.so,nw.pak,package.json} \ "${pkgdir}/usr/share/${_pkgname}/" # Directories cp -a "${_bpath}/"{locales,node_modules,src} "${pkgdir}/usr/share/${_pkgname}/" # 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 "${_bpath}/src/app/images/icon.png" "${pkgdir}/usr/share/icons/hicolor/256x256/apps/${_pkgname}.png" } # vim:set ts=2 sw=2 et: