Advertisement
arcolinux

PKGBUILD - Vivaldi-widevine

Oct 7th, 2018
1,563
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.28 KB | None | 0 0
  1. # Maintainer: Musikolo <musikolo {at} hotmail [dot] com>
  2. # Contributor Oliver Rümpelein <arch@pheerai.de>
  3. # Contributor/Base PKGBUILD: Doug Newgard <scimmia at archlinux dot info>
  4.  
  5. pkgname=vivaldi-widevine
  6. pkgdesc="A browser plugin designed for the viewing of premium video content, standalone for vivaldi"
  7. pkgver=4.10.1192.0
  8. _chrome_ver=69.0.3497.100
  9. pkgrel=1
  10. epoch=1
  11. arch=('x86_64')
  12. url='https://www.widevine.com/'
  13. source=('chrome-eula_text.html::https://www.google.com/intl/en/chrome/privacy/eula_text.html'
  14. "https://dl.google.com/linux/deb/pool/main/g/google-chrome-stable/google-chrome-stable_${_chrome_ver}-1_amd64.deb")
  15. options=("!strip")
  16. license=('custom')
  17. depends=('vivaldi-ffmpeg-codecs' 'glib2')
  18. conflicts=('chromium-widevine' 'google-chrome')
  19. sha256sums=('7e0841b96991116042f3f8fb53f7645040d0cbbcbcaa9e39e6949e17baa475ab'
  20. '180cbc8dc9f36bc3022556c046c5ac723607beaf6d1ec395b433c556e199a670')
  21.  
  22. prepare() {
  23. bsdtar -xf data.tar.xz opt/google/chrome/libwidevinecdm.so
  24. }
  25.  
  26. pkgver() {
  27. strings opt/google/chrome/libwidevinecdm.so | grep -A1 "ChromeCDM" | grep -P "^\d+"
  28. }
  29.  
  30. package() {
  31. install -Dm644 opt/google/chrome/libwidevinecdm.so -t "$pkgdir/opt/google/chrome/"
  32. install -Dm644 chrome-eula_text.html -t "$pkgdir/usr/share/licenses/$pkgname/"
  33. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement