# 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.8.0 _pkgver='0.3.8-0' pkgrel=3 pkgdesc="Stream movies from torrents. Skip the downloads. Launch, click, watch." arch=('x86_64' 'i686') url="http://popcorntime.io/" license=('GPL3') depends=('libsystemd' '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" sha1sums=('e0d34c48fb55680f922b62d31121032c744fb183' '23ee4387bebeaec41fb5b2d0428dd0ff5d0cad73' '98cba5c0c979d37e601cc33cf3b562f106427d36') _platform='Linux-64' if [ "$CARCH" = 'i686' ]; then _platform='Linux-32' sha256sums[0]='0217ce93e88650c7d557cafcfdf10a4b5fa14c54' fi source=("http://get.popcorntime.io/build/Popcorn-Time-${_pkgver}-${_platform}.tar.xz" "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}/CHANGELOG.md" "${pkgdir}/opt/${pkgname}/" install -Dm644 "${srcdir}/icudtl.dat" "${pkgdir}/opt/${pkgname}/" install -Dm644 "${srcdir}/install" "${pkgdir}/opt/${pkgname}/" install -Dm644 "${srcdir}/LICENSE.txt" "${pkgdir}/opt/${pkgname}/" install -Dm644 "${srcdir}/package.json" "${pkgdir}/opt/${pkgname}/" install -Dm644 "${srcdir}/popcorntime.png" "${pkgdir}/opt/${pkgname}/" install -Dm644 "${srcdir}/README.md" "${pkgdir}/opt/${pkgname}/" # Directories cp -a "${srcdir}/locales" "${pkgdir}/opt/${pkgname}/" cp -a "${srcdir}/node_modules" "${pkgdir}/opt/${pkgname}/" cp -a "${srcdir}/src" "${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}/popcorntime.png" "${pkgdir}/usr/share/pixmaps/popcorntime.png" }