brave-browser Void linux template
Template for VoidLinux
Brave browser for Android, iOS, Linux, macOS, Windows. Secure, fast and private web browser with ad blocker
version 1.81.137
August 2025
Binaries https://voidrepo.linuxnauta.com/
Developer https://github.com/brave/brave-browser
# Template file for 'brave-bin'
pkgname=brave-bin
version=1.81.137
revision=1
only_for_archs="x86_64"
short_desc="Secure, fast and private web browser with ad blocker"
maintainer="Soanvig <soanvig@gmail.com>"
hostmakedepends="tar xz" # need gtk+3!
license="Mozilla Public License Version 2.0"
homepage="https://brave.com"
distfiles="https://github.com/brave/brave-browser/releases/download/v${version}/brave-browser_${version}_amd64.deb"
checksum=bf8b19c1131ce78a28964a1a1fa407d80218f0077cc826062b709fe82043a8fa
nostrip=yes
do_extract() {
mkdir -p ${DESTDIR}
ar x ${XBPS_SRCDISTDIR}/${pkgname}-${version}/brave-browser_${version}_amd64.deb
}
do_install() {
tar xf data.tar.xz -C ${DESTDIR}
# Install the icons
for size in 24 32 48 64 128 256; do
# Create the brave browser xdg directory
mkdir -p ${DESTDIR}/usr/share/icons/hicolor/${size}x${size}/apps
# Copy the brave browser icon
mv ${DESTDIR}/opt/brave.com/brave/product_logo_${size}.png ${DESTDIR}/usr/share/icons/hicolor/${size}x${size}/apps/brave-browser.png
done
# Remove unused icons
rm ${DESTDIR}/opt/brave.com/brave/*.xpm
# Remove the Debian/Ubuntu crontab
rm -rf ${DESTDIR}/etc
rm -rf ${DESTDIR}/opt/brave.com/brave/cron
}