[arch-commits] Commit in netsurf/repos (8 files)

Jan Steffens heftig at archlinux.org
Mon Dec 28 20:59:47 UTC 2015


    Date: Monday, December 28, 2015 @ 21:59:47
  Author: heftig
Revision: 154683

archrelease: copy trunk to community-staging-x86_64, community-staging-i686

Added:
  netsurf/repos/community-staging-i686/
  netsurf/repos/community-staging-i686/PKGBUILD
    (from rev 154682, netsurf/trunk/PKGBUILD)
  netsurf/repos/community-staging-i686/netsurf.install
    (from rev 154682, netsurf/trunk/netsurf.install)
  netsurf/repos/community-staging-i686/netsurf.sh
    (from rev 154682, netsurf/trunk/netsurf.sh)
  netsurf/repos/community-staging-x86_64/
  netsurf/repos/community-staging-x86_64/PKGBUILD
    (from rev 154682, netsurf/trunk/PKGBUILD)
  netsurf/repos/community-staging-x86_64/netsurf.install
    (from rev 154682, netsurf/trunk/netsurf.install)
  netsurf/repos/community-staging-x86_64/netsurf.sh
    (from rev 154682, netsurf/trunk/netsurf.sh)

------------------------------------------+
 community-staging-i686/PKGBUILD          |   63 +++++++++++++++++++++++++++++
 community-staging-i686/netsurf.install   |   13 +++++
 community-staging-i686/netsurf.sh        |    7 +++
 community-staging-x86_64/PKGBUILD        |   63 +++++++++++++++++++++++++++++
 community-staging-x86_64/netsurf.install |   13 +++++
 community-staging-x86_64/netsurf.sh      |    7 +++
 6 files changed, 166 insertions(+)

Copied: netsurf/repos/community-staging-i686/PKGBUILD (from rev 154682, netsurf/trunk/PKGBUILD)
===================================================================
--- community-staging-i686/PKGBUILD	                        (rev 0)
+++ community-staging-i686/PKGBUILD	2015-12-28 20:59:47 UTC (rev 154683)
@@ -0,0 +1,63 @@
+# $Id$
+# Maintainer: Alexander Rødseth <rodseth at gmail.com>
+# Contributor: Paulo Matias <matiasΘarchlinux-br·org>
+# Contributor: Georgij Kondratjev <smpuj at bk.ru>
+# Contributor: Daniel J Griffiths <ghost1227 at archlinux.us>
+
+pkgname=netsurf
+pkgver=3.3
+pkgrel=2
+pkgdesc='Lightweight and fast web browser'
+arch=('x86_64' 'i686')
+url='http://www.netsurf-browser.org/'
+license=('MIT' 'GPL2')
+depends=('libmng' 'librsvg' 'libwebp' 'curl' 'lcms' 'desktop-file-utils' 'libnsbmp>=0.1.1' 'libnsgif>=0.1.1' 'libcss>=0.5.0' 'libdom>=0.1.2' 'gtk2' 'libutf8proc' 'libnsutils' 'libwebp') # gtk3
+makedepends=('re2c' 'netsurf-buildsystem' 'perl-html-parser' 'nsgenbind' 'inetutils' 'libwebp')
+install="$pkgname.install"
+source=("http://download.$pkgname-browser.org/$pkgname/releases/source/$pkgname-$pkgver-src.tar.gz"
+        'netsurf.sh')
+sha256sums=('23f92a0940f577b9605f2e54786fea3521680d32d6c00f2a3db1eae3f29e3686'
+            '70310682d1612457d7bb3096549110b6ec127f50e97853259fada6be0c52924b')
+
+prepare() {
+  cd "$pkgname-$pkgver"
+
+  sed 's:_BSD_SOURCE:_DEFAULT_SOURCE:' -i gtk/Makefile.target
+  sed 's:netsurf-gtk:netsurf:' -i gtk/res/netsurf-gtk.desktop
+  sed 's:libutf8proc/::' -i utils/idna.c
+  sed 's:UTF8PROC_CCC_VIRAMA:UTF8PROC_BIDI_CLASS_EN:' -i utils/idna.c
+  sed 's:utf8proc_normalise:utf8proc_reencode:' -i utils/idna.c
+  # There are several errors. Asking netsurf upstream to look at it.
+}
+
+build() {
+  make -C "$pkgname-$pkgver" \
+    PREFIX=/usr \
+    TARGET=gtk \
+    NETSURF_USE_WEBP=YES \
+    NETSURF_USE_VIDEO=NO \
+    NETSURF_USE_JS=NO \
+    NETSURF_USE_MOZJS=NO # Javascript is disabled, for now. See FS#41582
+}
+
+package() {
+  cd "$pkgname-$pkgver"
+
+  make install PREFIX=/usr DESTDIR="$pkgdir"
+
+  # Script and executable
+  mv "$pkgdir/usr/bin/$pkgname" "$pkgdir/usr/bin/$pkgname.elf"
+  install -Dm755 "../$pkgname.sh" "$pkgdir/usr/bin/$pkgname"
+
+  # Desktop shortcut
+  install -Dm644 "gtk/res/$pkgname.xpm" \
+    "$pkgdir/usr/share/pixmaps/$pkgname.xpm"
+  install -Dm644 "gtk/res/$pkgname-gtk.desktop" \
+    "$pkgdir/usr/share/applications/$pkgname.desktop"
+
+  # License
+  install -Dm644 COPYING \
+    "$pkgdir/usr/share/licenses/$pkgname/COPYING"
+}
+
+# vim:set ts=2 sw=2 et:

Copied: netsurf/repos/community-staging-i686/netsurf.install (from rev 154682, netsurf/trunk/netsurf.install)
===================================================================
--- community-staging-i686/netsurf.install	                        (rev 0)
+++ community-staging-i686/netsurf.install	2015-12-28 20:59:47 UTC (rev 154683)
@@ -0,0 +1,13 @@
+post_upgrade() {
+  update-desktop-database -q
+}
+
+post_install() {
+  post_upgrade
+}
+
+post_remove() {
+  post_upgrade
+}
+
+# vim:set ts=2 sw=2 et:

Copied: netsurf/repos/community-staging-i686/netsurf.sh (from rev 154682, netsurf/trunk/netsurf.sh)
===================================================================
--- community-staging-i686/netsurf.sh	                        (rev 0)
+++ community-staging-i686/netsurf.sh	2015-12-28 20:59:47 UTC (rev 154683)
@@ -0,0 +1,7 @@
+#!/bin/sh
+shortname=`echo $LANG | cut -b1-2`
+if [[ -d /usr/share/netsurf/$shortname ]]; then
+  /usr/bin/netsurf.elf "$@"
+else
+  LANG=en /usr/bin/netsurf.elf "$@"
+fi

Copied: netsurf/repos/community-staging-x86_64/PKGBUILD (from rev 154682, netsurf/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2015-12-28 20:59:47 UTC (rev 154683)
@@ -0,0 +1,63 @@
+# $Id$
+# Maintainer: Alexander Rødseth <rodseth at gmail.com>
+# Contributor: Paulo Matias <matiasΘarchlinux-br·org>
+# Contributor: Georgij Kondratjev <smpuj at bk.ru>
+# Contributor: Daniel J Griffiths <ghost1227 at archlinux.us>
+
+pkgname=netsurf
+pkgver=3.3
+pkgrel=2
+pkgdesc='Lightweight and fast web browser'
+arch=('x86_64' 'i686')
+url='http://www.netsurf-browser.org/'
+license=('MIT' 'GPL2')
+depends=('libmng' 'librsvg' 'libwebp' 'curl' 'lcms' 'desktop-file-utils' 'libnsbmp>=0.1.1' 'libnsgif>=0.1.1' 'libcss>=0.5.0' 'libdom>=0.1.2' 'gtk2' 'libutf8proc' 'libnsutils' 'libwebp') # gtk3
+makedepends=('re2c' 'netsurf-buildsystem' 'perl-html-parser' 'nsgenbind' 'inetutils' 'libwebp')
+install="$pkgname.install"
+source=("http://download.$pkgname-browser.org/$pkgname/releases/source/$pkgname-$pkgver-src.tar.gz"
+        'netsurf.sh')
+sha256sums=('23f92a0940f577b9605f2e54786fea3521680d32d6c00f2a3db1eae3f29e3686'
+            '70310682d1612457d7bb3096549110b6ec127f50e97853259fada6be0c52924b')
+
+prepare() {
+  cd "$pkgname-$pkgver"
+
+  sed 's:_BSD_SOURCE:_DEFAULT_SOURCE:' -i gtk/Makefile.target
+  sed 's:netsurf-gtk:netsurf:' -i gtk/res/netsurf-gtk.desktop
+  sed 's:libutf8proc/::' -i utils/idna.c
+  sed 's:UTF8PROC_CCC_VIRAMA:UTF8PROC_BIDI_CLASS_EN:' -i utils/idna.c
+  sed 's:utf8proc_normalise:utf8proc_reencode:' -i utils/idna.c
+  # There are several errors. Asking netsurf upstream to look at it.
+}
+
+build() {
+  make -C "$pkgname-$pkgver" \
+    PREFIX=/usr \
+    TARGET=gtk \
+    NETSURF_USE_WEBP=YES \
+    NETSURF_USE_VIDEO=NO \
+    NETSURF_USE_JS=NO \
+    NETSURF_USE_MOZJS=NO # Javascript is disabled, for now. See FS#41582
+}
+
+package() {
+  cd "$pkgname-$pkgver"
+
+  make install PREFIX=/usr DESTDIR="$pkgdir"
+
+  # Script and executable
+  mv "$pkgdir/usr/bin/$pkgname" "$pkgdir/usr/bin/$pkgname.elf"
+  install -Dm755 "../$pkgname.sh" "$pkgdir/usr/bin/$pkgname"
+
+  # Desktop shortcut
+  install -Dm644 "gtk/res/$pkgname.xpm" \
+    "$pkgdir/usr/share/pixmaps/$pkgname.xpm"
+  install -Dm644 "gtk/res/$pkgname-gtk.desktop" \
+    "$pkgdir/usr/share/applications/$pkgname.desktop"
+
+  # License
+  install -Dm644 COPYING \
+    "$pkgdir/usr/share/licenses/$pkgname/COPYING"
+}
+
+# vim:set ts=2 sw=2 et:

Copied: netsurf/repos/community-staging-x86_64/netsurf.install (from rev 154682, netsurf/trunk/netsurf.install)
===================================================================
--- community-staging-x86_64/netsurf.install	                        (rev 0)
+++ community-staging-x86_64/netsurf.install	2015-12-28 20:59:47 UTC (rev 154683)
@@ -0,0 +1,13 @@
+post_upgrade() {
+  update-desktop-database -q
+}
+
+post_install() {
+  post_upgrade
+}
+
+post_remove() {
+  post_upgrade
+}
+
+# vim:set ts=2 sw=2 et:

Copied: netsurf/repos/community-staging-x86_64/netsurf.sh (from rev 154682, netsurf/trunk/netsurf.sh)
===================================================================
--- community-staging-x86_64/netsurf.sh	                        (rev 0)
+++ community-staging-x86_64/netsurf.sh	2015-12-28 20:59:47 UTC (rev 154683)
@@ -0,0 +1,7 @@
+#!/bin/sh
+shortname=`echo $LANG | cut -b1-2`
+if [[ -d /usr/share/netsurf/$shortname ]]; then
+  /usr/bin/netsurf.elf "$@"
+else
+  LANG=en /usr/bin/netsurf.elf "$@"
+fi



More information about the arch-commits mailing list