-
Notifications
You must be signed in to change notification settings - Fork 0
/
template
38 lines (32 loc) · 1.24 KB
/
template
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# Template file for 'brave-bin'
pkgname=brave-bin
version=1.73.89
revision=1
only_for_archs="x86_64"
short_desc="Secure, fast and private web browser with ad blocker"
maintainer="Soanvig <[email protected]>"
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=f5ed33312e6471331dc64befab6e3c9190d0a41cff1dfe0e314759e258260d5f
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
}