From ed96886e3238db8a9fed29b0326384b299f65e00 Mon Sep 17 00:00:00 2001 From: Julian Ospald Date: Sat, 15 Sep 2018 21:11:18 +0800 Subject: [PATCH] net-www/brave-browser-dev: initial import --- .../brave-browser-dev-0.50.14.exheres-0 | 76 +++++++++++++++++++ 1 file changed, 76 insertions(+) create mode 100644 packages/net-www/brave-browser-dev/brave-browser-dev-0.50.14.exheres-0 diff --git a/packages/net-www/brave-browser-dev/brave-browser-dev-0.50.14.exheres-0 b/packages/net-www/brave-browser-dev/brave-browser-dev-0.50.14.exheres-0 new file mode 100644 index 00000000..2eb73a4e --- /dev/null +++ b/packages/net-www/brave-browser-dev/brave-browser-dev-0.50.14.exheres-0 @@ -0,0 +1,76 @@ +# Copyright 2018 Julian Ospald +# 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" +DOWNLOADS="https://brave-browser-apt-dev.s3.brave.com/pool/main/b/${PN}/${PN}_0.50.14_amd64.deb" + +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 + + edo mv usr/share/doc/${PN} usr/share/doc/${PNV} + insinto /usr/share + doins -r usr/share/* + + insinto /opt + doins -r opt/* + for f in "${IMAGE}"/opt/brave.com/brave-dev/{${PN},brave-browser,brave,brave-sandbox} ; do + edo chmod +x "${f}" + done + + dodir /usr/$(exhost --target)/bin + dosym ../../../opt/brave.com/brave-dev/${PN} /usr/$(exhost --target)/bin/${PN} +} +