diff options
author | Luke Shumaker <lukeshu@lukeshu.com> | 2018-08-23 14:54:43 -0400 |
---|---|---|
committer | Luke Shumaker <lukeshu@lukeshu.com> | 2018-08-23 16:05:22 -0400 |
commit | 6ef30fbab26a15256330d781b9bd53b64e97ec88 (patch) | |
tree | 4d6ae9f4bcd6d180ae66b8f5a4f04950e5ee6727 /libre/iceweasel/PKGBUILD | |
parent | f183568c8fcda088c9f467fec6c8c098e42f7c00 (diff) | |
download | abslibre-6ef30fbab26a15256330d781b9bd53b64e97ec88.tar.gz abslibre-6ef30fbab26a15256330d781b9bd53b64e97ec88.tar.bz2 abslibre-6ef30fbab26a15256330d781b9bd53b64e97ec88.zip |
libre/iceweasel: Tidy formatting a touch
Diffstat (limited to 'libre/iceweasel/PKGBUILD')
-rw-r--r-- | libre/iceweasel/PKGBUILD | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/libre/iceweasel/PKGBUILD b/libre/iceweasel/PKGBUILD index 64b7e7914..6c411c721 100644 --- a/libre/iceweasel/PKGBUILD +++ b/libre/iceweasel/PKGBUILD @@ -109,29 +109,27 @@ END END fi # end [[ $CARCH = arm* ]] - # perform rebranding + ## Rebranding local brandingdir="$srcdir/$pkgname-$_brandingver" + # file dump rm -rf -- browser/branding/$pkgname cp -aT -- $brandingdir/branding browser/branding/$pkgname - + # patching rm -rf .pc export QUILT_PATCHES=$brandingdir/patches export QUILT_REFRESH_ARGS='-p ab --no-timestamps --no-index' export QUILT_DIFF_ARGS='--no-timestamps' quilt push -av - # Put "Start Page" branding images in the source code install -m644 -t browser/base/content/abouthome -- \ "$brandingdir/branding"/{drm-free,gnu_headshadow,parabola-banner}.png install -m644 -t browser/extensions/onboarding/content/img -- \ "$brandingdir/branding/watermark.svg" - # produce icons for i in 128; do rsvg-convert -w $i -h $i "$brandingdir/branding/${pkgname}_icon.svg" \ -o "browser/branding/iceweasel/default$i.png" done - # Patch and remove anything that's left patch -Np1 -i "$srcdir/libre.patch" sed -i 's/Adobe Flash/SWF Player/g' -- \ @@ -142,15 +140,12 @@ END -e '/"displayName": "QuickTime"/ s/QuickTime/MOV Player/' \ -e '/installLinux/ s/true/false/' \ -i -- browser/base/content/browser-plugins.js - # re-use 'abouthome' page for 'newtab' page install -d browser/base/content/newtab cat browser/base/content/abouthome/aboutHome.xhtml > browser/base/content/newtab/newTab.xhtml - # Load our searchplugins rm -rf -- browser/locales/searchplugins cp -aT -- /usr/lib/mozilla/searchplugins browser/locales/searchplugins - # Disable various components at the source level sed -i 's/;1/;0/' toolkit/components/telemetry/TelemetryStartup.manifest #sed -i 's/;1/;0/' browser/experiments/Experiments.manifest @@ -172,7 +167,7 @@ package() { DESTDIR="$pkgdir" ./mach install find . -name '*crashreporter-symbols-full.zip' -exec cp -fvt "$startdir" {} + - local _shortver=$(echo $pkgver | cut -d'.' -f1,2) + local _shortver=$(cut -d. -f1,2 <<<"$pkver") _vendorjs="$pkgdir/usr/lib/$pkgname/browser/defaults/preferences/vendor.js" install -Dm644 /dev/stdin "$_vendorjs" <<END // Use LANG environment variable to choose locale |