2018-09-15 13:11:18 +00:00
|
|
|
# Copyright 2018 Julian Ospald <hasufell@posteo.de>
|
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
|
|
|
|
require freedesktop-desktop
|
|
|
|
|
|
|
|
SUMMARY="Next generation Brave browser"
|
|
|
|
HOMEPAGE="https://brave-browser.readthedocs.io"
|
2018-11-08 17:39:34 +00:00
|
|
|
DOWNLOADS="https://github.com/brave/brave-browser/releases/download/v${PV}/brave-browser_${PV}_amd64.deb"
|
2018-09-15 13:11:18 +00:00
|
|
|
|
|
|
|
LICENCES="MPL-2.0"
|
|
|
|
SLOT="0"
|
|
|
|
PLATFORMS="-* ~amd64"
|
|
|
|
MYOPTIONS=""
|
|
|
|
|
|
|
|
DEPENDENCIES="
|
|
|
|
run:
|
|
|
|
dev-libs/at-spi2-atk
|
|
|
|
dev-libs/atk
|
|
|
|
dev-libs/expat
|
|
|
|
dev-libs/glib:2
|
|
|
|
dev-libs/nspr
|
|
|
|
dev-libs/nss
|
|
|
|
net-print/cups
|
|
|
|
sys-apps/dbus
|
|
|
|
sys-sound/alsa-lib
|
|
|
|
x11-dri/mesa
|
|
|
|
x11-libs/cairo
|
|
|
|
x11-libs/gdk-pixbuf:2.0
|
|
|
|
x11-libs/gtk+:3
|
|
|
|
x11-libs/libX11
|
|
|
|
x11-libs/libXScrnSaver
|
|
|
|
x11-libs/libXcomposite
|
|
|
|
x11-libs/libXcursor
|
|
|
|
x11-libs/libXdamage
|
|
|
|
x11-libs/libXext
|
|
|
|
x11-libs/libXfixes
|
|
|
|
x11-libs/libXi
|
|
|
|
x11-libs/libXrandr
|
|
|
|
x11-libs/libXrender
|
|
|
|
x11-libs/libXtst
|
|
|
|
x11-libs/libxcb
|
|
|
|
x11-libs/pango
|
|
|
|
"
|
|
|
|
|
|
|
|
BUGS_TO="hasufell@posteo.de"
|
|
|
|
|
|
|
|
REMOTE_IDS="github:brave/brave-browser"
|
|
|
|
|
|
|
|
WORK=${WORKBASE}
|
|
|
|
|
|
|
|
pkg_setup() {
|
|
|
|
exdirectory --allow /opt
|
|
|
|
}
|
|
|
|
|
|
|
|
src_unpack() {
|
|
|
|
default
|
|
|
|
unpack ./data.tar.xz
|
|
|
|
}
|
|
|
|
|
|
|
|
src_install() {
|
|
|
|
local f
|
|
|
|
|
2018-11-08 17:39:34 +00:00
|
|
|
edo mv usr/share/doc/brave-browser usr/share/doc/${PNV}
|
2018-09-15 13:11:18 +00:00
|
|
|
insinto /usr/share
|
|
|
|
doins -r usr/share/*
|
|
|
|
|
|
|
|
insinto /opt
|
|
|
|
doins -r opt/*
|
2018-11-08 17:39:34 +00:00
|
|
|
for f in "${IMAGE}"/opt/brave.com/brave/{brave-browser,brave,brave-sandbox} ; do
|
2018-09-15 13:11:18 +00:00
|
|
|
edo chmod +x "${f}"
|
|
|
|
done
|
|
|
|
|
|
|
|
dodir /usr/$(exhost --target)/bin
|
2018-11-08 17:39:34 +00:00
|
|
|
dosym ../../../opt/brave.com/brave/brave-browser /usr/$(exhost --target)/bin/${PN}
|
2018-09-15 13:11:18 +00:00
|
|
|
}
|
|
|
|
|