Username: Password: Remember me
# Maintainer : Michalina Pacholska <micha7a (at) gmail.com>
# Contributor : E5ten <e5ten.arch@gmail.com>
# Contributor : Shawn Dellysse sdellysse@gmail.com
 
pkgname=parsec-bin
pkgver=150_11
pkgrel=1
pkgdesc="Remotely connect to a gaming pc for a low latency remote computing experience"
url=http://parsec.tv
arch=('x86_64')
license=('custom')
provides=('parsec')
conflicts=('parsec')
epoch=0
depends=('gcc-libs' 'libglvnd' 'libxext' 'libxcb')
optdepends=('libva: For hardware accelerated decoding')
source=("https://s3.amazonaws.com/parsec-build/package/parsec-linux.deb"
		"parsecd.service"
		"LICENSE")
md5sums=('ece1123f5f4c644bb5a43fe0ac53d752'
         '5e1c21b8e2d186d137e25dfe7d5c1a6f'
         'a2ade27560bb84d198647c6342f0febe')
package() {
	mkdir -p $pkgdir/usr/bin
	mkdir -p $pkgdir/usr/share/icons/hicolor/256x256/apps
	mkdir -p $pkgdir/usr/share/applications
	mkdir -p $pkgdir/usr/share/parsec/skel
	mkdir -p $pkgdir/usr/lib/systemd/user
	mkdir -p $pkgdir/usr/share/licenses/$pkgname/
	bsdtar xf $srcdir/data.tar.xz
	install -Dm755 $srcdir/usr/bin/parsecd $pkgdir/usr/bin/
	install -Dm755 $srcdir/usr/share/applications/parsec.desktop $pkgdir/usr/share/applications/
	install -Dm644 $srcdir/usr/share/icons/hicolor/256x256/apps/parsec.png $pkgdir/usr/share/icons/hicolor/256x256/apps/
	install -Dm644 $srcdir/parsecd.service $pkgdir/usr/lib/systemd/user/
	install -Dm644 $srcdir/LICENSE $pkgdir/usr/share/licenses/$pkgname/
	ln -s /usr/bin/parsecd $pkgdir/usr/bin/parsec
	cp $srcdir/usr/share/parsec/skel/appdata.json $pkgdir/usr/share/parsec/skel/appdata.json
	cp $srcdir/usr/share/parsec/skel/parsecd-${pkgver//_/-}.so $pkgdir/usr/share/parsec/skel/parsecd-${pkgver//_/-}.so
}