Here is a very simple hint showing how to install the adblock plus
extension from source.

Regards,
Ed Batalha
AUTHOR: Eduardo Batalha (admin at edbatalha dot info)

DATE: 2016-7-11

LICENSE: GNU Free Documentation License Version 1.2

SYNOPSIS: Build and Install AdBlock-Plus

DESCRIPTION:
This is a simple hint that will show how to download, build and install the 
Adblock-Plus extension (version 2.7.3) for the Fiefox and Seamonkey programs.

PREREQUISITES: Firefox or Seamonkey (or any other browser able to use 
these kind of extensions.)

HINT:

Required dependency Jinja2 (see below first if not already installed.)

Download these 4 files and place them all in the same folder:

https://hg.adblockplus.org/adblockplus/archive/94e1164f6fa9.tar.bz2
https://hg.adblockplus.org/buildtools/archive/3816c08c0f98.tar.bz2
https://hg.adblockplus.org/adblockpluscore/archive/5d9618f68a0c.tar.bz2
https://hg.adblockplus.org/adblockplusui/archive/eaf7a04285fa.tar.bz2

If you have wget simply run the below
mkdir adblockplus-2.7.3 &&
cd adblockplus-2.7.3 &&
wget https://hg.adblockplus.org/adblockplus/archive/94e1164f6fa9.tar.bz2 &&
wget https://hg.adblockplus.org/buildtools/archive/3816c08c0f98.tar.bz2 &&
wget https://hg.adblockplus.org/adblockpluscore/archive/5d9618f68a0c.tar.bz2 &&
wget https://hg.adblockplus.org/adblockplusui/archive/eaf7a04285fa.tar.bz2

Now, extract the files to their proper folders

tar xf 94e1164f6fa9.tar.bz2 --strip-components=1 &&
mkdir buildtools && cd buildtools &&
tar xf ../3816c08c0f98.tar.bz2 --strip-components=1 &&
cd .. && mkdir adblockpluscore && cd adblockpluscore &&
tar xf ../5d9618f68a0c.tar.bz2 --strip-components=1 &&
cd .. && mkdir adblockplusui && cd adblockplusui &&
tar xf ../eaf7a04285fa.tar.bz2 --strip-components=1 &&
cd ..

Now build the xpi file with

./build.py build

There will be a few "failed dependencies" error messages which can be safely
ignored.
You will now have a adblockplus-2.7.3.0.xpi file in the same folder.

Open either Firefox or Seamonkey, go to addons and you can now do 
"Install from file". 
The "first run" page will appear where you can configure a few more options. 

Lastly, remember to disable adblock on the linuxfromsratch.org domain and to 
click on the adverts from time to time.

Note: (untested)
If you have either Mercurial or Git installed, it should be possible for you 
to just download the first file, extract it, cd into the folder and run 

./build.py build


----------

Jinja2

Required dependency setuptools (see below first if not already installed.) 

Get the latest Jinja2 from
https://pypi.python.org/pypi/Jinja2#downloads

The one I got was version 2.8.
Extract and cd into it as usual

Now run as the root user
python setup.py install --prefix=/usr

-------------

setuptools

Required dependency Python-2.x.x

Get the latest setuptools from
https://pypi.python.org/pypi/setuptools#downloads

The one I got was version 24.0.2
Extract and cd into it as usual

Now run as the root user
python setup.py install --prefix=/usr


CHANGELOG:
2016-07-11
-- 
http://lists.linuxfromscratch.org/listinfo/hints
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to