Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installing qtwebflix on raspberry p4 and manjaro #77

Open
Romainiak opened this issue Oct 12, 2019 · 1 comment
Open

Installing qtwebflix on raspberry p4 and manjaro #77

Romainiak opened this issue Oct 12, 2019 · 1 comment

Comments

@Romainiak
Copy link

Hi I am trying to install the qtwebflix link on a raspberry. Pi 4 running manjaro.

Maintainer: Jan Neumann
pkgname=qtwebflix-git
_gitname=qtwebflix
pkgver=0.1.r173.ga50ef71
pkgrel=1
pkgdesc='Standalone HD Netflix Browser using qt5-webengine (also supports Amazon prime, HBO Go, Hulu, Crunchy Roll)'
arch=('any')
url='https://github.com/gort818/qtwebflix'
license=('GPL3')
depends=('xdg-utils' 'qt5-webengine' 'chromium-widevine')
optdepends=('pepper-flash: Needed for some streaming services')
makedepends=('git')
source=("git+${url}.git"
"${_gitname}.desktop")

sha256sums=('SKIP'
'7b15975f63818493b965926c336e37b8716f9550d23058fc9057004d3f7ffb2f')

pkgver() {
cd ${srcdir}/${_gitname}

#printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
git describe --long --tags | sed 's/^v//;s/([^-]*-g)/r\1/;s/-/./g'

}

prepare() {

cd ${srcdir}/${_gitname}
git submodule init
git submodule update

}

build() {

cd ${srcdir}/${_gitname}
mkdir build && cd build
qmake -config release ..
make

}

package() {

install -Dm755 ${srcdir}/${_gitname}/build/${_gitname} ${pkgdir}/usr/bin/${_gitname}
install -Dm644 ${srcdir}/${_gitname}/resources/qtwebflix.svg ${pkgdir}/usr/share/pixmaps/qtwebflix.svg
install -Dm755 ${srcdir}/${_gitname}.desktop ${pkgdir}/usr/share/applications/${_gitname}.desktop

Maintainer: Doug Newgard
pkgname=chromium-widevine
pkgdesc='A browser plugin designed for the viewing of premium video content'
pkgver=4.10.1503.4
_chrome_ver=77.0.3865.120
_license_date=$(curl -sI https://www.google.com/intl/en/chrome/privacy/eula_text.html | sed -n '/^last-modified/ s/.*: //p' | date +"%Y%m%d" -f -)
_license_last=20190829
pkgrel=1
epoch=1
arch=('x86_64' 'aarch64)
url='https://www.widevine.com/'
license=('custom')
depends=('gcc-libs' 'glib2' 'glibc' 'nspr' 'nss')
provides=("chromium-widevine-dev=$pkgver")
conflicts=('chromium-widevine-dev')
options=('!strip')
source=("chrome-eula_text-$license_date.html::https://www.google.com/intl/en/chrome/privacy/eula_text.html"
"https://dl.google.com/linux/deb/pool/main/g/google-chrome-stable/google-chrome-stable${_chrome_ver}-1_amd64.deb"
get_cdm_version.c)
sha256sums=('6dd5ffc2c58074b19ab9ed3ae92d0ba12456a105ff52cd91ff13836edd607795'
'07abdccd7c15f5abe68765c1162f2ab666b6478a4d578aa6351d5667cd983a48'
'3fda44a5b8b222434530f27923568de1fda1eb0caa8621b56a8b2a6a2a2e3d5d')

prepare() {
bsdtar -x --strip-components 4 -f data.tar.xz opt/google/chrome/libwidevinecdm.so
gcc get_cdm_version.c -o get_cdm_version -ldl
}

pkgver() {
./get_cdm_version
}

package() {
install -Dm644 libwidevinecdm.so -t "$pkgdir/usr/lib/chromium/"
install -d "$pkgdir/usr/lib/chromium-dev/"
ln -s ../chromium/libwidevinecdm.so "$pkgdir/usr/lib/chromium-dev/libwidevinecdm.so"
install -Dm644 chrome-eula_text-$_license_date.html "$pkgdir/usr/share/licenses/$pkgname/eula_text.html"
}

But it runs and returns a error does anyone know how to fix it please?

Preparing...
Cloning qtwebflix-git build files...
Checking qtwebflix-git dependencies...
Cloning chromium-widevine build files...
Checking chromium-widevine dependencies...

Building chromium-widevine...
/var/tmp/pamac-build-romain/chromium-widevine/PKGBUILD: line 23: unexpected EOF while looking for matching `''
/var/tmp/pamac-build-romain/chromium-widevine/PKGBUILD: line 40: syntax error: unexpected end of file
==> ERROR: Failed to source /var/tmp/pamac-build-romain/chromium-widevine/PKGBUILD

@saildata
Copy link

It's a syntax error in your local revisions of chromium-widevine - not related to this project.

Change 'aarch64 to 'aarch64'. Or just change the arch to any.

Good luck --

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants