Advertisement
Guest User

Untitled

a guest
Mar 19th, 2024
32
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.28 KB | None | 0 0
  1. # vim:set ft=sh:
  2. # Maintainer: Carlinux <rcarlini DOT aur AT gmail DOT com>
  3. # Contributor: BlackEagle <ike DOT devolder AT gmail DOT com>
  4. # Contributor: Bartłomiej Piotrowski <barthalion@gmail.com>
  5. # Contributor: Mateusz Herych <heniekk@gmail.com>
  6. # Contributor: ruario <ruario AT opera DOT com>
  7. # Contributor: Daniel Isenmann <daniel AT archlinux DOT org>
  8. # Contributor: dorphell <dorphell AT archlinux DOT org>
  9. # Contributor: Sigitas Mazaliauskas <sigis AT gmail DOT com>
  10. # Contributor: eworm
  11.  
  12. pkgname=opera
  13. pkgver=108.0.5067.29
  14. pkgrel=1
  15. pkgdesc="A fast and secure web browser"
  16. url="https://www.opera.com/"
  17. options=(!strip !zipman)
  18. license=('custom:opera')
  19. backup=("etc/$pkgname/default")
  20. arch=('x86_64')
  21. depends=('gtk3' 'alsa-lib' 'libnotify' 'curl' 'nss' 'libcups' 'libxss' 'ttf-font' 'desktop-file-utils' 'shared-mime-info' 'hicolor-icon-theme')
  22. optdepends=(
  23. 'opera-ffmpeg-codecs: playback of proprietary video/audio'
  24. 'upower: opera battery save'
  25. )
  26. source=(
  27. "https://get.geo.opera.com/pub/${pkgname}/desktop/${pkgver}/linux/${pkgname}-stable_${pkgver}_amd64.deb"
  28. "opera"
  29. "default"
  30. 'eula.html'
  31. 'terms.html'
  32. 'privacy.html'
  33. )
  34. sha512sums=('5e97f53aa87e70efa90ffd87c0a904b2e9b5410d39e1d0549b5018245ddddbb8cbc06ae7a322aa97643b3402bdc7f64fd8525e08a47f9a369396acf889f6727e'
  35. '7e854e4c972785b8941f60117fbe4b88baeb8d7ca845ef2e10e8064043411da73821ba1ab0068df61e902f242a3ce355b51ffa9eab5397ff3ae3b5defd1be496'
  36. 'ddb1773877fcfd7d9674e63263a80f9dd5a3ba414cda4cc6c411c88d49c1d5175eede66d9362558ddd53c928c723101e4e110479ae88b8aec4d2366ec179297f'
  37. 'aaaa4435a3b6a08bf8e6ad4802afcbf111c1e8f477054251f031b70ae57ac1234fa19048121d64c878dc3b1de03522ce7ef11a263a86dc7062f643d569ecff82'
  38. '800d62321344ff4e3521ff20fae281cad9206bae80e60965784d144f8bf852f756cbc21f4c9d8d4e93d026da7ca10e0eda7601c83a6d8d85125831eacb907d9a'
  39. '43d4a066758805597527dbdfc95b4c8ad4b22c5db812b9493e50f8820c72f30c1e431bed40fdb821ab0c23a63aa31dc0e946ab708cc23ac617446964fa6b96f2')
  40.  
  41. prepare() {
  42. sed -e "s/%pkgname%/$pkgname/g" -i "$srcdir/opera"
  43. sed -e "s/%operabin%/$pkgname\/$pkgname/g" \
  44. -i "$srcdir/opera"
  45.  
  46. }
  47.  
  48. package() {
  49. tar -xf data.tar.xz --exclude=usr/share/{lintian,menu} -C "$pkgdir/"
  50.  
  51. # get rid of the extra subfolder {i386,x86_64}-linux-gnu
  52. (
  53. cd "$pkgdir/usr/lib/"*-linux-gnu/
  54. mv "$pkgname" ../
  55. )
  56. rm -rf "$pkgdir/usr/lib/"*-linux-gnu
  57.  
  58. # suid opera_sandbox
  59. chmod 4755 "$pkgdir/usr/lib/$pkgname/opera_sandbox"
  60.  
  61. # install default options
  62. install -Dm644 "$srcdir/default" "$pkgdir/etc/$pkgname/default"
  63.  
  64. # install opera wrapper
  65. rm "$pkgdir/usr/bin/$pkgname"
  66. install -Dm755 "$srcdir/opera" "$pkgdir/usr/bin/$pkgname"
  67.  
  68. # license
  69. install -Dm644 \
  70. "$pkgdir/usr/share/doc/${pkgname}-stable/copyright" \
  71. "$pkgdir/usr/share/licenses/$pkgname/copyright"
  72.  
  73. # eula
  74. install -Dm644 \
  75. "$srcdir/eula.html" \
  76. "$pkgdir/usr/share/licenses/$pkgname/eula.html"
  77.  
  78. # terms
  79. install -Dm644 \
  80. "$srcdir/terms.html" \
  81. "$pkgdir/usr/share/licenses/$pkgname/terms.html"
  82.  
  83. # privacy
  84. install -Dm644 \
  85. "$srcdir/privacy.html" \
  86. "$pkgdir/usr/share/licenses/$pkgname/privacy.html"
  87. }
  88.  
  89.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement