Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions packages/netsurf/Choices
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
homepage_url:about:welcome
fb_download_directory:/home/root/Downloads

fb_xochitl_restart_command:killall -9 netsurf

scale:150
enable_javascript:0

fb_face_sans_serif:/home/root/xovi/exthome/appload/netsurf/res/fonts/DejaVuSans.ttf
fb_face_sans_serif_bold:/home/root/xovi/exthome/appload/netsurf/res/fonts/DejaVuSans-Bold.ttf
fb_face_sans_serif_italic:/home/root/xovi/exthome/appload/netsurf/res/fonts/DejaVuSans-Oblique.ttf
fb_face_sans_serif_italic_bold:/home/root/xovi/exthome/appload/netsurf/res/fonts/DejaVuSans-BoldOblique.ttf
fb_face_serif:/home/root/xovi/exthome/appload/netsurf/res/fonts/DejaVuSansMono.ttf
fb_face_serif_bold:/home/root/xovi/exthome/appload/netsurf/res/fonts/DejaVuSerif-Bold.ttf
fb_face_cursive:/home/root/xovi/exthome/appload/netsurf/res/fonts/DejaVuSerif-Italic.ttf
fb_face_monospace:/home/root/xovi/exthome/appload/netsurf/res/fonts/DejaVuSansMono.ttf
fb_face_monospace_bold:/home/root/xovi/exthome/appload/netsurf/res/fonts/DejaVuSansMono-Bold.ttf
fb_face_fantasy:/home/root/xovi/exthome/appload/netsurf/res/fonts/DejaVuSans-Oblique.ttf
fb_face_cjk:/home/root/xovi/exthome/appload/netsurf/res/fonts/NotoSansCJKsc-Regular.otf

fb_toolbar_size:60
fb_furniture_size:40
fb_osk:1
117 changes: 117 additions & 0 deletions packages/netsurf/VELBUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,117 @@
maintainer="maicrohard <maicrohard@proton.me>"
pkgname=netsurf
pkgver=0.5.0
pkgrel=0
pkgdesc="Lightweight web browser"
upstream_author="MaicroNotHard"
category="apps"
url="https://github.com/$upstream_author/netsurf-reMarkable"
arch="armv7 aarch64"
license="GPL-2.0-only"
depends="appload>=0.5.3"
options="!check !fhs !strip !tracedeps"

_commit=125e7e10d044e6eef1fa391a979067fb1c18cb3c
_dejavuver=2.37
_notocjkver=2.004

readmeurl="https://raw.githubusercontent.com/$upstream_author/netsurf-reMarkable/$_commit/README.md"

source="
netsurf-reMarkable-$_commit.zip::https://github.com/$upstream_author/netsurf-reMarkable/archive/$_commit.zip
dejavu-fonts-ttf-$_dejavuver.tar.bz2::https://downloads.sourceforge.net/project/dejavu/dejavu/$_dejavuver/dejavu-fonts-ttf-$_dejavuver.tar.bz2
noto-sans-cjk-sc-$_notocjkver.zip::https://github.com/notofonts/noto-cjk/releases/download/Sans$_notocjkver/08_NotoSansCJKsc.zip
external.manifest.json
Choices
icon.png
"

image="ghcr.io/toltec-dev/base:v4.0"

build() {
set -e
apt-get update
apt-get install -y automake autoconf libtool bison flex gperf libpng-dev git
case "$CARCH" in
aarch64) . /opt/x-tools/switch-aarch64.sh ;;
armv7) . /opt/x-tools/switch-arm.sh ;;
*)
echo "Invalid CARCH: $CARCH"
exit 1
;;
esac
_commit=125e7e10d044e6eef1fa391a979067fb1c18cb3c # not set in build() when image= is used
cd "$srcdir/netsurf-reMarkable-$_commit"
# Remove the toolchain's prebuilt shared libevdev so the linker uses the
# static one install_dependencies.sh builds instead.
rm -f "$SYSROOT"/usr/lib/libevdev.so*
scripts/install_dependencies.sh
scripts/install_image_libs.sh
TARGET_WORKSPACE="$PWD"/build scripts/build.sh
}

package() {
cd "$srcdir/netsurf-reMarkable-$_commit"
install -Dm644 LICENSE \
"$pkgdir/home/root/.vellum/licenses/$pkgname/LICENSE"
echo "https://github.com/$upstream_author/netsurf-reMarkable" > \
"$pkgdir/home/root/.vellum/licenses/$pkgname/SOURCES"

install -Dm755 build/netsurf/nsfb \
"$pkgdir"/home/root/xovi/exthome/appload/netsurf/netsurf
install -Dm644 "$startdir"/external.manifest.json \
"$pkgdir"/home/root/xovi/exthome/appload/netsurf/external.manifest.json

resdir=build/netsurf/frontends/framebuffer/res
install -Dm644 -t "$pkgdir"/home/root/xovi/exthome/appload/netsurf/res \
"$resdir"/adblock.css \
"$resdir"/default.css \
"$resdir"/quirks.css \
"$resdir"/internal.css \
"$resdir"/Messages \
"$resdir"/credits.html \
"$resdir"/licence.html \
"$resdir"/welcome.html \
"$resdir"/welcome-netsurf.html \
"$resdir"/netsurf.png
install -Dm644 "$startdir"/Choices \
"$pkgdir"/home/root/xovi/exthome/appload/netsurf/res/Choices
install -Dm644 "$startdir"/icon.png \
"$pkgdir"/home/root/xovi/exthome/appload/netsurf/icon.png

dejavudir="$srcdir/dejavu-fonts-ttf-$_dejavuver/ttf"
install -Dm644 -t "$pkgdir"/home/root/xovi/exthome/appload/netsurf/res/fonts \
"$dejavudir"/DejaVuSans.ttf \
"$dejavudir"/DejaVuSans-Bold.ttf \
"$dejavudir"/DejaVuSans-Oblique.ttf \
"$dejavudir"/DejaVuSans-BoldOblique.ttf \
"$dejavudir"/DejaVuSerif-Bold.ttf \
"$dejavudir"/DejaVuSerif-Italic.ttf \
"$dejavudir"/DejaVuSansMono.ttf \
"$dejavudir"/DejaVuSansMono-Bold.ttf

# CJK fallback font (Chinese/Japanese/Korean)
install -Dm644 -t "$pkgdir"/home/root/xovi/exthome/appload/netsurf/res/fonts \
"$srcdir"/NotoSansCJKsc-Regular.otf
}

postdeinstall() {
if [ "$VELLUM_PURGE" = "1" ]; then
# Remove runtime data and the app dir.
rm -rf /home/root/.netsurf
rm -rf /home/root/xovi/exthome/appload/netsurf
fi
}

sha512sums='b2eb9226aa7addb3b236d69f00d7f1a657e507f61409ef426a7cb9805485ba6cf02da279e7627d9229d7e345c8044910e48ed8dbca07c79e8067145568d38d4e
netsurf-reMarkable-125e7e10d044e6eef1fa391a979067fb1c18cb3c.zip
bafa39321021097432777f0825d700190c23f917d754a4504722cd8946716c22c083836294dab7f3ae7cf20af63c4d0944f3423bf4aa25dbca562d1f30e00654
dejavu-fonts-ttf-2.37.tar.bz2
d523187e27fa554d9ae3c64496235f0bd3a505a8f31f89da2762df5148be83ba1c2650fe6fa125b0214e2c1c699ee22703371b81a4d3141e522149915121fdf4
noto-sans-cjk-sc-2.004.zip
3ce876f3cfbfaffa78ed9b7b67eb29e8d3643262fb49bfad70baece254fc2b3098dbde02b95d81dd5893d916d65da369f782b21003a5d3cb0c682b11f87e2030
external.manifest.json
eba7f3e095216c685f1e8d55f43361026d68c9c3aeec447ea1dec4a98ae638e561119551a37a69a1e0e93b9be03dde29406006512fcfda0c663eb7413c0f286a
Choices
da6459e55cc20d142aeec03000bfe8d65d0a0b5ce22ec08a4073888c5321c550486a54851d7ebc7004b2710b0560569fe3c41ee2eca4158128d98c3eb36c27b9
icon.png'
14 changes: 14 additions & 0 deletions packages/netsurf/external.manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"name": "NetSurf",
"application": "netsurf",
"aspectRatio": "original",
"qtfb": true,
"environment": {
"LD_PRELOAD": "/home/root/shims/qtfb-shim.so",
"QTFB_SHIM_RESPECT_APP_REFRESH_MODES": "true",
"QTFB_SHIM_RESPECT_FULL_REFRESH_REQUESTS": "true",
"QTFB_SHIM_MODEL": "RM1",
"HOME": "/home/root",
"NETSURFRES": "/home/root/xovi/exthome/appload/netsurf/res"
}
}
Binary file added packages/netsurf/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.