netsurf: update to 3.0.

This commit is contained in:
Juan RP 2014-02-04 22:31:43 +01:00
parent 03e4d583a7
commit 2f93e76573
2 changed files with 40 additions and 22 deletions

View File

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

View File

@ -1,41 +1,51 @@
# Template build file for 'netsurf'. # Template build file for 'netsurf'.
pkgname=netsurf pkgname=netsurf
version=2.9 version=3.0
revision=5 revision=1
hostmakedepends="pkg-config perl" hostmakedepends="pkg-config perl gperf flex nsgenbind"
makedepends="libjpeg-turbo-devel libmng-devel makedepends="
libpng-devel>=1.6 librsvg-devel libxml2-devel libcurl-devel libjpeg-turbo-devel libmng-devel libpng-devel>=1.6 libxml2-devel libcurl-devel
lcms-devel libwebp-devel>=0.4.0 libparserutils-devel libwapcaplet-devel lcms-devel libwebp-devel>=0.4.0 libparserutils-devel libwapcaplet-devel
libhubbub-devel libcss-devel libnsbmp-devel libnsgif-devel gtk+-devel libhubbub-devel libcss-devel libnsbmp-devel libnsgif-devel libdom-devel
libglade-devel" gtk+-devel js-devel desktop-file-utils shared-mime-info"
depends="desktop-file-utils shared-mime-info" depends="desktop-file-utils shared-mime-info"
short_desc="Free, open source web browser written in C." short_desc="Free, open source web browser written in C"
maintainer="davehome <davehome@redthumb.info.tm>" maintainer="davehome <davehome@redthumb.info.tm>"
license="GPL-2, MIT" license="GPL-2, MIT"
homepage="http://www.netsurf-browser.org" homepage="http://www.netsurf-browser.org"
distfiles="http://download.netsurf-browser.org/netsurf/releases/source-full/${pkgname}-${version}-full-src.tar.gz" distfiles="http://download.netsurf-browser.org/netsurf/releases/source/${pkgname}-${version}-src.tar.gz"
checksum=ade6ade7f66ce2f0a80df724bafefd18c17165166111c490837737aa2e09ae9d checksum=7c6a48d3cc3e9a3e3a51b532ddf60f7697e97bf8b61a6d3b2ced1a2e89fbccc6
do_build() { do_build() {
make ${makejobs} --directory=${pkgname}-${version} \ make ${makejobs} \
PREFIX=/usr TARGET=gtk NETSURF_USE_WEBP=YES \ PREFIX=/usr \
NETSURF_USE_VIDEO=NO NETSURF_USE_BMP=YES \
NETSURF_USE_WEBP=YES \
NETSURF_USE_VIDEO=NO \
NETSURF_USE_MOZJS=YES \
NETSURF_USE_HARU_PDF=NO
} }
do_install() { do_install() {
make ${makejobs} --directory=${pkgname}-${version} \ make ${makejobs} \
PREFIX=/usr DESTDIR=${DESTDIR} TARGET=gtk \ PREFIX=/usr \
NETSURF_USE_WEBP=YES NETSURF_USE_VIDEO=NO install 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) # Install app icon (from Ubuntu)
vinstall "${FILESDIR}/${pkgname}.png" \ vinstall ${FILESDIR}/${pkgname}.png 0644 usr/share/pixmaps
0644 usr/share/pixmaps
# Install .desktop file (from Arch) # Install .desktop file (from Arch)
vinstall "${FILESDIR}/${pkgname}.desktop" \ vinstall ${FILESDIR}/${pkgname}.desktop 0644 usr/share/applications
0644 usr/share/applications
# Install license # Install license
vinstall "${wrksrc}/${pkgname}-${version}/COPYING" \ vinstall COPYING 0644 usr/share/licenses/${pkgname}
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
} }