# Maintainer: FirstAirBender # Contributor: Jean Lucas # Contributor: Pieter Goetschalckx <3.14.e.ter [at] gmail [dot] com> # Contributor: Eric Engestrom # Contributor: Attila Bukor pkgname='popcorntime-git' _pkgname="${pkgname//-git/}" pkgver=0.4.4.r1879.g64553fa7 pkgrel=1 pkgdesc='Popcorn Time is a multi-platform, free software BitTorrent client that includes an integrated media player.' arch=(i686 x86_64) url=https://github.com/popcorn-official/popcorn-desktop license=(GPL3) depends=(gtk3 libxss nss nodejs) makedepends=(git yarn) provides=(popcorntime) conflicts=(popcorntime popcorntime-bin) options=(!strip) source=("$_pkgname"::git+https://github.com/popcorn-official/popcorn-desktop.git#branch=development popcorntime.desktop) sha512sums=('SKIP' '81a447cd3365b439964c1b9eba14bcf31de05e62123ce032590ac2109a447c5db0306bf4c593fe30f075d2b3674a1611a81b7554e43acba152ef34652c819a33') pkgver() { # https://wiki.archlinux.org/index.php/VCS_package_guidelines#The_pkgver()_function cd "$_pkgname" git describe $(git remote)/master --long | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g' } build() { export YARN_GLOBAL_FOLDER=/tmp/node_modules/ cd "$_pkgname" cat >.yarnrc <