template 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. # Template file for 'brave-bin'
  2. pkgname=brave-bin
  3. version=1.21.76
  4. revision=1
  5. only_for_archs="x86_64"
  6. short_desc="Secure, fast and private web browser with ad blocker"
  7. maintainer="Reback 00 <reback00@protonmail.com>"
  8. hostmakedepends="tar xz"
  9. license="Mozilla Public License Version 2.0"
  10. homepage="https://brave.com"
  11. distfiles="https://github.com/brave/brave-browser/releases/download/v${version}/brave-browser_${version}_amd64.deb"
  12. checksum=24565a3d2f4d9b065ec84743a8eaca1bd54440fef0232aa447f4a4e38195c69b
  13. nostrip=yes
  14. do_extract() {
  15. mkdir -p ${DESTDIR}
  16. ar x ${XBPS_SRCDISTDIR}/${pkgname}-${version}/brave-browser_${version}_amd64.deb
  17. }
  18. do_install() {
  19. tar xf data.tar.xz -C ${DESTDIR}
  20. # Install the icons
  21. for size in 24 32 48 64 128 256; do
  22. # Create the brave browser xdg directory
  23. mkdir -p ${DESTDIR}/usr/share/icons/hicolor/${size}x${size}/apps
  24. # Copy the brave browser icon
  25. mv ${DESTDIR}/opt/brave.com/brave/product_logo_${size}.png \
  26. ${DESTDIR}/usr/share/icons/hicolor/${size}x${size}/apps/brave-browser.png
  27. done
  28. # Remove unused icons
  29. rm ${DESTDIR}/opt/brave.com/brave/*.xpm
  30. # Remove the Debian/Ubuntu crontab
  31. rm -rf ${DESTDIR}/etc
  32. rm -rf ${DESTDIR}/opt/brave.com/brave/cron
  33. }