void-packages/srcpkgs/netsurf/template

52 lines
1.6 KiB
Plaintext

# Template build file for 'netsurf'.
pkgname=netsurf
version=3.2
revision=1
hostmakedepends="pkg-config gperf flex nsgenbind>=0.1.0 gdk-pixbuf-devel perl-HTML-Parser"
makedepends="
libjpeg-turbo-devel libmng-devel libpng-devel>=1.6 libxml2-devel libcurl-devel
lcms-devel libwebp-devel>=0.4.0 libparserutils-devel>=0.2.0 libwapcaplet-devel>=0.2.1
libhubbub-devel>=0.3.0 libcss-devel>=0.4 libnsbmp-devel libnsgif-devel
libdom-devel>=0.1.1 gtk+-devel js-devel"
depends="desktop-file-utils shared-mime-info"
short_desc="Free, open source web browser written in C"
maintainer="Juan RP <xtraeme@gmail.com>"
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=04ffeb8335c59cbc23371b79ae3b178002e6e95c35225ef62db4b155ecc7e213
do_build() {
make ${makejobs} \
PREFIX=/usr \
NETSURF_USE_BMP=YES \
NETSURF_USE_WEBP=YES \
NETSURF_USE_VIDEO=NO \
NETSURF_USE_MOZJS=YES \
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_MOZJS=YES \
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
vinstall COPYING 0644 usr/share/licenses/${pkgname}
# Install wrapper for proper localization.
mv ${DESTDIR}/usr/bin/netsurf ${DESTDIR}/usr/bin/netsurf.elf
vinstall ${FILESDIR}/netsurf.sh 755 usr/bin netsurf
}