diff options
author | Márcio Alexandre Silva Delgado <coadde@lavabit.com> | 2013-05-21 04:24:04 -0300 |
---|---|---|
committer | Márcio Alexandre Silva Delgado <coadde@lavabit.com> | 2013-05-21 04:24:04 -0300 |
commit | 7e10d47cf04f9a5b3fe819dbbfc9fff8036f04ac (patch) | |
tree | 2b51169609d399534f6041adb9fc634dfc00d841 /libre/iceweasel-libre/PKGBUILD | |
parent | e777f99123e62a5547bb816e09a460a065c71755 (diff) | |
parent | 89c0af8305046890734eba2969c9b057e0a6bf9a (diff) | |
download | abslibre-7e10d47cf04f9a5b3fe819dbbfc9fff8036f04ac.tar.gz abslibre-7e10d47cf04f9a5b3fe819dbbfc9fff8036f04ac.tar.bz2 abslibre-7e10d47cf04f9a5b3fe819dbbfc9fff8036f04ac.zip |
Merge branch 'master' of ssh://parabolagnulinux.org:1863/srv/git/abslibre
Diffstat (limited to 'libre/iceweasel-libre/PKGBUILD')
-rw-r--r-- | libre/iceweasel-libre/PKGBUILD | 21 |
1 files changed, 17 insertions, 4 deletions
diff --git a/libre/iceweasel-libre/PKGBUILD b/libre/iceweasel-libre/PKGBUILD index 738aaeef9..eebf10e57 100644 --- a/libre/iceweasel-libre/PKGBUILD +++ b/libre/iceweasel-libre/PKGBUILD @@ -22,7 +22,7 @@ debfile() { echo $@|sed -r 's@(.).*@\1/&/&@'; } _pkgname=iceweasel pkgname=iceweasel-libre pkgver=$_debver.$_debrel -pkgrel=2 +pkgrel=3 pkgdesc="A libre version of Debian Iceweasel, the standalone web browser based on Mozilla Firefox." arch=(i686 x86_64 mips64el) @@ -50,16 +50,18 @@ source=("$_debrepo/`debfile $_debname`_$_debver.orig.tar.bz2" iceweasel-install-dir.patch vendor.js shared-libs.patch + replace-urls.txt Bug-756390-Make-the-Reset-Firefox-feature-more-gener.patch) md5sums=('0a7c51bb494463c327af918bae6c4ee4' 'c17121a4ffd40f463e16d7828445d96e' 'e1e903ca91997f18b428c54ef604f27d' '383e8e2a97a8b13fe56d153adb6878b6' - '98a433139ffcbf6b3018f18dcaacdb4c' + '2930f3bffe0d7a6b9845f8c006821bc2' '7b9e5996dd9fe0b186a43a297db1c6b5' 'abf5ecb74caa857abb42bcfbb3442d9c' '0c26941504d3f2abed759221e9bb5de1' '52e52f840a49eb1d14be1c0065b03a93' + 'a8fc4658d45b6bf9350023e5c3f34e56' '85e67561e0e491cd538ce018dfc2d948') prepare() { @@ -84,6 +86,17 @@ prepare() { patch -Np1 -i "$srcdir/iceweasel-install-dir.patch" # install to /usr/lib/$_pkgname patch -Np1 -i "$srcdir/shared-libs.patch" + # Replace common URLs + sed '/^#/d' ../replace-urls.txt | while read -r moz_url gnu_url; do + if [[ -n $moz_url ]]; then + printf 'liberating: %s -> %s\n' "$moz_url" "$gnu_url" + grep -Erl "${moz_url}" \ + --exclude='*.'{patch,orig,rej} \ + --exclude-dir={.pc,test,tests,testing} \ + | xargs -d '\n' --no-run-if-empty sed -ri "s<${moz_url}<${gnu_url}<g" + fi + done + # Patch anything that's left patch -Np1 -i "$srcdir/libre.patch" @@ -177,8 +190,8 @@ package() { ln -sf /usr/share/hyphen "$pkgdir/usr/lib/$_pkgname/hyphenation" rm -rf "$pkgdir/usr/lib/$_pkgname/browser/"{searchplugins,plugins} - ln -sf /usr/lib/mozilla/plugins "$pkgdir/usr/lib/$_pkgname/plugins" - ln -sf /usr/lib/mozilla/searchplugins "$pkgdir/usr/lib/$_pkgname/searchplugins" + ln -sf /usr/lib/mozilla/plugins "$pkgdir/usr/lib/$_pkgname/browser/plugins" + ln -sf /usr/lib/mozilla/searchplugins "$pkgdir/usr/lib/$_pkgname/browser/searchplugins" # We don't want the development stuff rm -rf "$pkgdir"/usr/{include,lib/$_pkgname-devel,share/idl} |