void-packages/srcpkgs/netsurf/template

54 lines
1.7 KiB
Plaintext
Raw Normal View History

# Template build file for 'netsurf'.
pkgname=netsurf
2014-04-28 14:05:53 +02:00
version=3.1
revision=2
hostmakedepends="pkg-config gperf flex nsgenbind>=0.1.0 gdk-pixbuf-devel perl-HTML-Parser"
2014-02-04 22:31:43 +01:00
makedepends="
libjpeg-turbo-devel libmng-devel libpng-devel>=1.6 libxml2-devel libcurl-devel
2014-04-28 14:05:53 +02:00
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.3 libnsbmp-devel libnsgif-devel
libdom-devel>=0.1.0 gtk+-devel js-devel desktop-file-utils shared-mime-info"
depends="desktop-file-utils shared-mime-info"
2014-02-04 22:31:43 +01:00
short_desc="Free, open source web browser written in C"
2014-04-28 14:05:53 +02:00
maintainer="Juan RP <xtraeme@gmail.com>"
2012-02-24 00:50:53 +01:00
license="GPL-2, MIT"
2012-06-06 13:02:05 +02:00
homepage="http://www.netsurf-browser.org"
2014-02-04 22:31:43 +01:00
distfiles="http://download.netsurf-browser.org/netsurf/releases/source/${pkgname}-${version}-src.tar.gz"
2014-04-28 14:05:53 +02:00
checksum=1ef12b2e2bc68f9eff8465646b7359e3cb483e1042aed750cc283a70dd4c540c
do_build() {
2014-02-04 22:31:43 +01:00
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() {
2014-02-05 09:42:03 +01:00
export PKG_CONFIG_LIBDIR="${XBPS_CROSS_BASE}/usr/lib/pkgconfig"
2014-02-04 22:31:43 +01:00
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
2012-02-24 00:25:30 +01:00
# Install app icon (from Ubuntu)
2014-02-04 22:31:43 +01:00
vinstall ${FILESDIR}/${pkgname}.png 0644 usr/share/pixmaps
# Install .desktop file (from Arch)
2014-02-04 22:31:43 +01:00
vinstall ${FILESDIR}/${pkgname}.desktop 0644 usr/share/applications
# Install license
2014-02-04 22:31:43 +01:00
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
}