netsurf: update to 3.0.
This commit is contained in:
parent
03e4d583a7
commit
2f93e76573
2 changed files with 40 additions and 22 deletions
8
srcpkgs/netsurf/files/netsurf.sh
Normal file
8
srcpkgs/netsurf/files/netsurf.sh
Normal 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 $?
|
|
@ -1,41 +1,51 @@
|
|||
# Template build file for 'netsurf'.
|
||||
pkgname=netsurf
|
||||
version=2.9
|
||||
revision=5
|
||||
hostmakedepends="pkg-config perl"
|
||||
makedepends="libjpeg-turbo-devel libmng-devel
|
||||
libpng-devel>=1.6 librsvg-devel libxml2-devel libcurl-devel
|
||||
version=3.0
|
||||
revision=1
|
||||
hostmakedepends="pkg-config perl gperf flex nsgenbind"
|
||||
makedepends="
|
||||
libjpeg-turbo-devel libmng-devel libpng-devel>=1.6 libxml2-devel libcurl-devel
|
||||
lcms-devel libwebp-devel>=0.4.0 libparserutils-devel libwapcaplet-devel
|
||||
libhubbub-devel libcss-devel libnsbmp-devel libnsgif-devel gtk+-devel
|
||||
libglade-devel"
|
||||
libhubbub-devel libcss-devel libnsbmp-devel libnsgif-devel libdom-devel
|
||||
gtk+-devel js-devel 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>"
|
||||
license="GPL-2, MIT"
|
||||
homepage="http://www.netsurf-browser.org"
|
||||
distfiles="http://download.netsurf-browser.org/netsurf/releases/source-full/${pkgname}-${version}-full-src.tar.gz"
|
||||
checksum=ade6ade7f66ce2f0a80df724bafefd18c17165166111c490837737aa2e09ae9d
|
||||
distfiles="http://download.netsurf-browser.org/netsurf/releases/source/${pkgname}-${version}-src.tar.gz"
|
||||
checksum=7c6a48d3cc3e9a3e3a51b532ddf60f7697e97bf8b61a6d3b2ced1a2e89fbccc6
|
||||
|
||||
do_build() {
|
||||
make ${makejobs} --directory=${pkgname}-${version} \
|
||||
PREFIX=/usr TARGET=gtk NETSURF_USE_WEBP=YES \
|
||||
NETSURF_USE_VIDEO=NO
|
||||
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} --directory=${pkgname}-${version} \
|
||||
PREFIX=/usr DESTDIR=${DESTDIR} TARGET=gtk \
|
||||
NETSURF_USE_WEBP=YES NETSURF_USE_VIDEO=NO 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
|
||||
vinstall ${FILESDIR}/${pkgname}.png 0644 usr/share/pixmaps
|
||||
|
||||
# Install .desktop file (from Arch)
|
||||
vinstall "${FILESDIR}/${pkgname}.desktop" \
|
||||
0644 usr/share/applications
|
||||
vinstall ${FILESDIR}/${pkgname}.desktop 0644 usr/share/applications
|
||||
|
||||
# Install license
|
||||
vinstall "${wrksrc}/${pkgname}-${version}/COPYING" \
|
||||
0644 "/usr/share/licenses/${pkgname}"
|
||||
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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue