36 lines
1.2 KiB
Bash
36 lines
1.2 KiB
Bash
# Template file for 'netsurf'
|
|
pkgname=netsurf
|
|
version=3.11
|
|
revision=1
|
|
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="
|
|
libcurl-devel libwebp-devel libcss-devel libnsbmp-devel libnsgif-devel
|
|
libutf8proc-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.0-only, MIT"
|
|
homepage="https://www.netsurf-browser.org"
|
|
distfiles="https://download.netsurf-browser.org/netsurf/releases/source/${pkgname}-${version}-src.tar.gz"
|
|
checksum=c28a626aefee428d053b13f88b5c440922245976522d12eaf137cfd32d201cb2
|
|
|
|
post_install() {
|
|
# Install app icon (from Ubuntu)
|
|
vinstall ${FILESDIR}/${pkgname}.png 0644 usr/share/pixmaps
|
|
|
|
# Install .desktop file (from Arch)
|
|
vinstall ${FILESDIR}/${pkgname}.desktop 0644 usr/share/applications
|
|
|
|
# Install license
|
|
vlicense COPYING
|
|
|
|
# Install wrapper for proper localization.
|
|
vbin ${FILESDIR}/netsurf.sh netsurf
|
|
}
|