yochananmarqos

naver-whale-stable

Apr 4th, 2021
609
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # Maintainer:
  2. # Contributor: Dimitris Kiziridis <ragouel at outlook dot com>
  3. pkgname=naver-whale-stable
  4. pkgver=2.9.115.7
  5. pkgrel=1
  6. pkgdesc="The web browser from NAVER"
  7. arch=('x86_64')
  8. url="https://whale.naver.com"
  9. license=('custom')
  10. depends=('alsa-lib' 'gtk3' 'libxss' 'libxtst' 'nss' 'ttf-liberation')
  11. conflicts=('whale-browser')
  12. replaces=('whale-browser')
  13. source=("$pkgname-$pkgver.deb::https://installer-whale.pstatic.net/downloads/installers/${pkgname}_amd64.deb"
  14.         'LICENSE')
  15. sha256sums=('fe71da4ef17238ce1be58799b0d79f7fc2d565fd36335d0dbf5d06b267e7c410'
  16.             '0ce852c7aa1d3d4401ba262108dad8fd04d84f9f1a9d2b4db0969242ccedc4e4')
  17.  
  18. package() {
  19.     bsdtar xvf data.tar.xz -C "$pkgdir/"
  20.     install -Dm644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname/"
  21.  
  22.     for _size in 16 24 32 48 64 128 256; do
  23.         install -Dm644 "$pkgdir/opt/naver/whale/product_logo_${_size}.png" \
  24.             "$pkgdir/usr/share/icons/hicolor/${_size}x${_size}/apps/naver-whale.png"
  25.     done
  26.  
  27.     # Remove cron job for PPA updates
  28.     rm -rf "$pkgdir/opt/naver/whale/cron"
  29.     rm -rf "$pkgdir/etc"
  30.  
  31.     # Remove default app XML
  32.     rm -rf "$pkgdir/usr/share/gnome-control-center"
  33. }
RAW Paste Data