From 4edfb3ebe56dc0fe99db55597a3d0aab0a3e7f72 Mon Sep 17 00:00:00 2001 From: André Fabian Silva Delgado Date: Thu, 4 Sep 2014 23:31:29 -0300 Subject: netsurf-3.2-1.parabola1: updating version, remove libre suffix and add complex pkgrel --- libre/netsurf-libre/PKGBUILD | 128 ------------------------------------ libre/netsurf-libre/netsurf.install | 13 ---- libre/netsurf-libre/netsurf.sh | 7 -- libre/netsurf/PKGBUILD | 123 ++++++++++++++++++++++++++++++++++ libre/netsurf/netsurf.install | 13 ++++ libre/netsurf/netsurf.sh | 7 ++ 6 files changed, 143 insertions(+), 148 deletions(-) delete mode 100644 libre/netsurf-libre/PKGBUILD delete mode 100644 libre/netsurf-libre/netsurf.install delete mode 100644 libre/netsurf-libre/netsurf.sh create mode 100644 libre/netsurf/PKGBUILD create mode 100644 libre/netsurf/netsurf.install create mode 100644 libre/netsurf/netsurf.sh (limited to 'libre') diff --git a/libre/netsurf-libre/PKGBUILD b/libre/netsurf-libre/PKGBUILD deleted file mode 100644 index 70ed26c7e..000000000 --- a/libre/netsurf-libre/PKGBUILD +++ /dev/null @@ -1,128 +0,0 @@ -# $Id: PKGBUILD 117980 2014-08-27 19:40:10Z arodseth $ -# Maintainer (Arch): Alexander Rødseth -# Contributor (Arch): Paulo Matias -# Contributor (Arch): Georgij Kondratjev -# Contributor (Arch): Daniel J Griffiths -# Maintainer: André Silva - -_pkgname=netsurf -pkgname=netsurf-libre -pkgver=3.1 -pkgrel=2 -pkgdesc='Lightweight and fast web browser, without non-privacy search providers' -arch=('x86_64' 'i686' 'mips64el') -url='http://www.netsurf-browser.org/' -license=('MIT' 'GPL2') -replaces=($_pkgname) -conflicts=($_pkgname) -provides=($_pkgname=$pkgver) -depends=('libmng' 'librsvg' 'libwebp' 'curl' 'lcms' 'desktop-file-utils' 'libnsbmp>=0.1.1' 'libnsgif>=0.1.1' 'libcss>=0.3.0' 'libdom>=0.1.0' 'gtk2') # gtk3 -makedepends=('re2c' 'gendesk' 'netsurf-buildsystem' 'perl-html-parser' 'nsgenbind' 'inetutils') -install="$_pkgname.install" -source=("netsurf.png::http://ubuntu.allmyapps.com/data/n/e/netsurf-netsurf-web-browser/icon_48x48_netsurf.png" - "http://download.$_pkgname-browser.org/$_pkgname/releases/source/$_pkgname-$pkgver-src.tar.gz" - 'netsurf.sh') -sha256sums=('f0dbcc5d80bf03d706aa8b28a322aa7f169a40813848c2d1505691f6e2c7ef00' - '1ef12b2e2bc68f9eff8465646b7359e3cb483e1042aed750cc283a70dd4c540c' - '70310682d1612457d7bb3096549110b6ec127f50e97853259fada6be0c52924b') - -prepare() { - cd "$_pkgname-$pkgver" - - # remove non-privacy search providers - sed -i '\|Google|d - \|Yahoo|d - \|Bing|d - \|Business.com|d - \|Omgili|d - \|BBC News|d - \|Ubuntu Packages|d - \|Ask[.]com|d - \|Answers.com|d - \|Youtube|d - \|AeroMp3|d - \|AOL|d - \|Baidu|d - \|Amazon|d - \|Ebay|d - \|IMDB|d - \|ESPN|d - \|Aminet|d - \|OS4Depot|d - s|DuckDuckGo|DuckDuckGo HTML| - s|duckduckgo[.]com|duckduckgo.com/html| - s|duckduckgo[.]com/html/favicon.ico|duckduckgo.com/favicon.ico| - s|seeks-project.info|seeks.fr|g - ' gtk/res/SearchEngines \ - \!NetSurf/Resources/SearchEngines \ - amiga/resources/SearchEngines - sed -i '\|readable name such as| s|google|duckduckgo| - \|readable name such as| s|yahoo|seeks| - \|host address such as www[.]google[.]com| s|google[.]com|duckduckgo.com/html| - s|google[.]com?search=%s|duckduckgo.com/html/?q=%s| - \|return strdup| s|google[.]com|duckduckgo.com/html| - \|return strdup| s|google|duckduckgo| - \|return strdup| s|duckduckgo[.]com/html/favicon[.]ico|duckduckgo.com/favicon.ico| - s|www[.]google[.]com/search?q=%s|duckduckgo.com/html/?q=%s| - ' desktop/searchweb.c - sed -i 's|google[.][.a-z]\{0,6\}/search|duckduckgo.com/html/search| - s|Google-Suche|DuckDuckGo HTML| - s|Google Search|DuckDuckGo HTML| - s|Ricerca Google|DuckDuckGo HTML| - s|Google検索|DuckDuckGo HTML| - \|BBC News|d - \|Reuters|d - \|CNN|d - \|Slashdot|d - \|Ars Technica|d - \|The Register|d - \|W3C|d - s|google[.][.a-z]\{0,6\}|duckduckgo.com/html| - s|Google|DuckDuckGo HTML| - s|[.a-z]\{0,4\}yahoo[.]co[.a-z]\{0,4\}|www.seeks.fr| - s|Yahoo!|Seeks| - \|IMDB|d - s|The Icon Bar|Creative Commons| - s|www[.]iconbar[.]com|creativecommons.org| - s|ROOL|Dictionary.com| - s|www[.]riscosopen[.]org|dictionary.reference.com| - \|riscos.info|d - ' \!NetSurf/Resources/de/welcome.html\,faf \ - \!NetSurf/Resources/en/welcome.html\,faf \ - \!NetSurf/Resources/it/welcome.html\,faf \ - \!NetSurf/Resources/ja/welcome.html\,faf - sed -i 's|nsgenbind -g|nsgenbind| - ' javascript/Makefile - - cd .. - - gendesk -f --pkgname "$_pkgname" --pkgdesc "$pkgdesc" --exec 'netsurf %U' \ - --genericname 'Web Browser' --comment 'Lightweight web browser' \ - --mimetypes 'text/html;application/xhtml+xml;x-scheme-handler/http;x-scheme-handler/https;x-scheme-handler/geo' -} - -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() { - make -C "$_pkgname-$pkgver" install PREFIX=/usr DESTDIR="$pkgdir" - mv "$pkgdir/usr/bin/$_pkgname" "$pkgdir/usr/bin/$_pkgname.elf" - install -Dm755 "$_pkgname.sh" "$pkgdir/usr/bin/$_pkgname" - install -Dm644 "$_pkgname.png" "$pkgdir/usr/share/pixmaps/$_pkgname.png" - install -Dm644 "$_pkgname.desktop" \ - "$pkgdir/usr/share/applications/$_pkgname.desktop" - install -Dm644 "$_pkgname-$pkgver/COPYING" \ - "$pkgdir/usr/share/licenses/$_pkgname/LICENSE" - # use softlinks instead of hardlinks - rm -r "$pkgdir/usr/share/netsurf/C" - ln -s '/usr/share/netsurf/en' "$pkgdir/usr/share/netsurf/C" -} - -# vim:set ts=2 sw=2 et: diff --git a/libre/netsurf-libre/netsurf.install b/libre/netsurf-libre/netsurf.install deleted file mode 100644 index ad97d7bab..000000000 --- a/libre/netsurf-libre/netsurf.install +++ /dev/null @@ -1,13 +0,0 @@ -post_upgrade() { - update-desktop-database -q -} - -post_install() { - post_upgrade -} - -post_remove() { - post_upgrade -} - -# vim:set ts=2 sw=2 et: diff --git a/libre/netsurf-libre/netsurf.sh b/libre/netsurf-libre/netsurf.sh deleted file mode 100644 index 01ff68450..000000000 --- a/libre/netsurf-libre/netsurf.sh +++ /dev/null @@ -1,7 +0,0 @@ -#!/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 diff --git a/libre/netsurf/PKGBUILD b/libre/netsurf/PKGBUILD new file mode 100644 index 000000000..0a912302a --- /dev/null +++ b/libre/netsurf/PKGBUILD @@ -0,0 +1,123 @@ +# $Id: PKGBUILD 118143 2014-09-01 16:06:05Z arodseth $ +# Maintainer (Arch): Alexander Rødseth +# Contributor (Arch): Paulo Matias +# Contributor (Arch): Georgij Kondratjev +# Contributor (Arch): Daniel J Griffiths +# Maintainer: André Silva + +pkgname=netsurf +pkgver=3.2 +pkgrel=1.parabola1 +pkgdesc='Lightweight and fast web browser, without non-privacy search providers' +arch=('x86_64' 'i686' 'mips64el') +url='http://www.netsurf-browser.org/' +license=('MIT' 'GPL2') +replaces=(${pkgname}-libre) +conflicts=(${pkgname}-libre) +depends=('libmng' 'librsvg' 'libwebp' 'curl' 'lcms' 'desktop-file-utils' 'libnsbmp>=0.1.1' 'libnsgif>=0.1.1' 'libcss>=0.4.0' 'libdom>=0.1.1' 'gtk2') # gtk3 +makedepends=('re2c' 'gendesk' 'netsurf-buildsystem' 'perl-html-parser' 'nsgenbind' 'inetutils') +install="$pkgname.install" +source=("netsurf.png::http://ubuntu.allmyapps.com/data/n/e/netsurf-netsurf-web-browser/icon_48x48_netsurf.png" + "http://download.$pkgname-browser.org/$pkgname/releases/source/$pkgname-$pkgver-src.tar.gz" + 'netsurf.sh') +sha256sums=('f0dbcc5d80bf03d706aa8b28a322aa7f169a40813848c2d1505691f6e2c7ef00' + '04ffeb8335c59cbc23371b79ae3b178002e6e95c35225ef62db4b155ecc7e213' + '70310682d1612457d7bb3096549110b6ec127f50e97853259fada6be0c52924b') + +prepare() { + cd "$pkgname-$pkgver" + + # remove non-privacy search providers + sed -i '\|Google|d + \|Yahoo|d + \|Bing|d + \|Business.com|d + \|Omgili|d + \|BBC News|d + \|Ubuntu Packages|d + \|Ask[.]com|d + \|Answers.com|d + \|Youtube|d + \|AeroMp3|d + \|AOL|d + \|Baidu|d + \|Amazon|d + \|Ebay|d + \|IMDB|d + \|ESPN|d + \|Aminet|d + \|OS4Depot|d + s|DuckDuckGo|DuckDuckGo HTML| + s|duckduckgo[.]com|duckduckgo.com/html| + s|duckduckgo[.]com/html/favicon.ico|duckduckgo.com/favicon.ico| + s|seeks-project.info|seeks.fr|g + ' gtk/res/SearchEngines \ + \!NetSurf/Resources/SearchEngines \ + amiga/resources/SearchEngines + sed -i '\|readable name such as| s|google|duckduckgo| + \|readable name such as| s|yahoo|seeks| + \|host address such as www[.]google[.]com| s|google[.]com|duckduckgo.com/html| + s|google[.]com?search=%s|duckduckgo.com/html/?q=%s| + \|return strdup| s|google[.]com|duckduckgo.com/html| + \|return strdup| s|google|duckduckgo| + \|return strdup| s|duckduckgo[.]com/html/favicon[.]ico|duckduckgo.com/favicon.ico| + s|www[.]google[.]com/search?q=%s|duckduckgo.com/html/?q=%s| + ' desktop/searchweb.c + sed -i 's|google[.][.a-z]\{0,6\}/search|duckduckgo.com/html/search| + s|Google-Suche|DuckDuckGo HTML| + s|Google Search|DuckDuckGo HTML| + s|Ricerca Google|DuckDuckGo HTML| + s|Google検索|DuckDuckGo HTML| + \|BBC News|d + \|Reuters|d + \|CNN|d + \|Slashdot|d + \|Ars Technica|d + \|The Register|d + \|W3C|d + s|google[.][.a-z]\{0,6\}|duckduckgo.com/html| + s|Google|DuckDuckGo HTML| + s|[.a-z]\{0,4\}yahoo[.]co[.a-z]\{0,4\}|www.seeks.fr| + s|Yahoo!|Seeks| + \|IMDB|d + s|The Icon Bar|Creative Commons| + s|www[.]iconbar[.]com|creativecommons.org| + s|ROOL|Dictionary.com| + s|www[.]riscosopen[.]org|dictionary.reference.com| + \|riscos.info|d + ' \!NetSurf/Resources/de/welcome.html\,faf \ + \!NetSurf/Resources/en/welcome.html\,faf \ + \!NetSurf/Resources/it/welcome.html\,faf \ + \!NetSurf/Resources/ja/welcome.html\,faf + sed -i 's|nsgenbind -g|nsgenbind| + ' javascript/Makefile + + cd .. + + gendesk -f --pkgname "$pkgname" --pkgdesc "$pkgdesc" --exec 'netsurf %U' \ + --genericname 'Web Browser' --comment 'Lightweight web browser' \ + --mimetypes 'text/html;application/xhtml+xml;x-scheme-handler/http;x-scheme-handler/https;x-scheme-handler/geo' +} + +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() { + make -C "$pkgname-$pkgver" install PREFIX=/usr DESTDIR="$pkgdir" + mv "$pkgdir/usr/bin/$pkgname" "$pkgdir/usr/bin/$pkgname.elf" + install -Dm755 "$pkgname.sh" "$pkgdir/usr/bin/$pkgname" + install -Dm644 "$pkgname.png" "$pkgdir/usr/share/pixmaps/$pkgname.png" + install -Dm644 "$pkgname.desktop" \ + "$pkgdir/usr/share/applications/$pkgname.desktop" + install -Dm644 "$pkgname-$pkgver/COPYING" \ + "$pkgdir/usr/share/licenses/$pkgname/LICENSE" +} + +# vim:set ts=2 sw=2 et: diff --git a/libre/netsurf/netsurf.install b/libre/netsurf/netsurf.install new file mode 100644 index 000000000..ad97d7bab --- /dev/null +++ b/libre/netsurf/netsurf.install @@ -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: diff --git a/libre/netsurf/netsurf.sh b/libre/netsurf/netsurf.sh new file mode 100644 index 000000000..01ff68450 --- /dev/null +++ b/libre/netsurf/netsurf.sh @@ -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 -- cgit v1.2.3-54-g00ecf