47 lines
1.4 KiB
Bash
47 lines
1.4 KiB
Bash
# Template build file for 'netsurf'.
|
|
pkgname=netsurf
|
|
version=3.5
|
|
revision=3
|
|
hostmakedepends="pkg-config gperf flex nsgenbind gdk-pixbuf-devel perl-HTML-Parser glib-devel"
|
|
makedepends="
|
|
libmng-devel libxml2-devel libcurl-devel lcms-devel libwebp-devel
|
|
libcss-devel libnsbmp-devel libnsgif-devel libutf8proc-devel
|
|
libnsutils-devel libdom-devel gtk+-devel"
|
|
depends="desktop-file-utils shared-mime-info"
|
|
short_desc="Free, open source web browser written in C"
|
|
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
|
license="GPL-2, MIT"
|
|
homepage="http://www.netsurf-browser.org"
|
|
distfiles="http://download.netsurf-browser.org/netsurf/releases/source/${pkgname}-${version}-src.tar.gz"
|
|
checksum=98f3a66d3ae24ab34becdab2ea690f8f20c0f49f86723f133ede6df57e451dcc
|
|
|
|
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
|
|
|
|
# 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.
|
|
mv ${DESTDIR}/usr/bin/netsurf ${DESTDIR}/usr/bin/netsurf.elf
|
|
vbin ${FILESDIR}/netsurf.sh netsurf
|
|
}
|