netsurf: use gtk+3

This commit is contained in:
Andrew J. Hesford 2020-05-24 06:40:09 -04:00 committed by Piraty
parent 585aa8340c
commit 749d15541b
2 changed files with 16 additions and 22 deletions

View file

@ -1,8 +1,8 @@
#!/bin/sh
shortname=$(echo $LANG | cut -b1-2)
if [ -d /usr/share/netsurf/$shortname ]; then
/usr/bin/netsurf-gtk "$@"
/usr/bin/netsurf-gtk3 "$@"
else
LANG=en_US /usr/bin/netsurf-gtk "$@"
LANG=en_US /usr/bin/netsurf-gtk3 "$@"
fi
exit $?

View file

@ -1,38 +1,32 @@
# Template file for 'netsurf'
pkgname=netsurf
version=3.9
revision=1
revision=2
build_style=gnu-makefile
make_use_env=yes
make_build_args="
TARGET=gtk3
NETSURF_USE_BMP=YES \
NETSURF_USE_WEBP=YES \
NETSURF_USE_VIDEO=NO \
NETSURF_USE_HARU_PDF=NO
"
make_install_args="$make_build_args"
hostmakedepends="pkg-config gperf flex nsgenbind gdk-pixbuf-devel
tar perl-HTML-Parser glib-devel xxd"
makedepends="
libidn-devel libmng-devel libxml2-devel libcurl-devel lcms-devel libwebp-devel
libcss-devel libnsbmp-devel libnsgif-devel libutf8proc-devel
libnsutils-devel libdom-devel gtk+-devel"
libnsutils-devel libdom-devel gtk+3-devel"
depends="desktop-file-utils shared-mime-info"
short_desc="Free, open source web browser written in C"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2, MIT"
license="GPL-2.0-only, MIT"
homepage="http://www.netsurf-browser.org"
distfiles="http://download.netsurf-browser.org/netsurf/releases/source/${pkgname}-${version}-src.tar.gz"
checksum=d72f1c6f6113a01e541f8476a93c347235068779140090df55ba402eb4a8ecc3
do_build() {
make ${makejobs} \
PREFIX=/usr \
NETSURF_USE_BMP=YES \
NETSURF_USE_WEBP=YES \
NETSURF_USE_VIDEO=NO \
NETSURF_USE_HARU_PDF=NO
}
do_install() {
make ${makejobs} \
PREFIX=/usr \
NETSURF_USE_BMP=YES \
NETSURF_USE_WEBP=YES \
NETSURF_USE_VIDEO=NO \
NETSURF_USE_HARU_PDF=NO \
DESTDIR=${DESTDIR} install
post_install() {
# Install app icon (from Ubuntu)
vinstall ${FILESDIR}/${pkgname}.png 0644 usr/share/pixmaps