Skip to content

Instantly share code, notes, and snippets.

@ramcq
Last active May 27, 2020 15:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ramcq/a3ed8326e3365ea102cae19df0dce969 to your computer and use it in GitHub Desktop.
Save ramcq/a3ed8326e3365ea102cae19df0dce969 to your computer and use it in GitHub Desktop.
prelim Flatpak for NetSurf

to build/install/test:

  • flatpak-builder --install-deps-from=flathub --repo=repo --ccache --force-clean --user build org.netsurf_browser.NetSurf.yaml
  • flatpak build-update-repo repo
  • flatpak remote-add --no-gpg-verify --user netsurf-test repo
  • flatpak install --user netsurf-test org.netsurf_browser.NetSurf
  • flatpak run org.netsurf_browser.NetSurf
---
app-id: org.netsurf_browser.NetSurf
runtime: org.freedesktop.Platform
runtime-version: "19.08"
sdk: org.freedesktop.Sdk
command: netsurf-gtk3
finish-args:
- "--filesystem=xdg-download"
- "--share=ipc"
- "--share=network"
- "--socket=x11"
- "--socket=fallback-x11"
- "--socket=wayland"
build-options:
env:
PERL5LIB: /app/lib/perl5
PERL_MM_OPT: INSTALL_BASE=/app
modules:
- name: xxd
buildsystem: simple
build-commands:
- make -C src/xxd
- install -Dt /app/bin src/xxd/xxd
sources:
- type: git
url: https://github.com/vim/vim
tag: v8.2.0788
commit: deb17451edd65e2af1d155bce0886e856a716591
cleanup:
- "*"
- name: perl-html-entities
buildsystem: simple
build-commands:
- perl Makefile.PL
- make install
sources:
- type: archive
url: https://cpan.metacpan.org/authors/id/G/GA/GAAS/HTML-Parser-3.72.tar.gz
sha256: ec28c7e1d9e67c45eca197077f7cdc41ead1bb4c538c7f02a3296a4bb92f608b
post-install:
- find /app/lib/perl5 -type f -exec chmod u+w {} \;
cleanup:
- "*"
- name: netsurf-gtk3
buildsystem: simple
build-commands:
- make PREFIX=/app TARGET=gtk3 install
sources:
- type: git
url: git://git.netsurf-browser.org/netsurf-all.git
tag: release/3.10
post-install:
- install -D netsurf/frontends/gtk/res/netsurf-gtk.desktop /app/share/applications/org.netsurf_browser.NetSurf.desktop
- desktop-file-edit --set-icon=org.netsurf_browser.NetSurf --set-key=Exec --set-value="netsurf-gtk3 %u" /app/share/applications/org.netsurf_browser.NetSurf.desktop
- |
for size in 64 128
do
install -d /app/share/icons/hicolor/${size}x${size}/apps
gdk-pixbuf-thumbnailer -s ${size} netsurf/frontends/gtk/res/netsurf.xpm /app/share/icons/hicolor/${size}x${size}/apps/org.netsurf_browser.NetSurf.png
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment