# Note: depends on pybabel
# Note: depends on dbus-python
wget -c https://launchpad.net/wicd/1.7/1.7.2.4/+download/wicd-1.7.2.4.tar.gz
tar -xzf wicd-1.7.2.4.tar.gz
cd wicd-1.7.2.4
# Some patching
sed -i -e '/<policy group="/{a<allow send_destination="org.wicd.daemon.wireless"/>
a<allow send_interface="org.wicd.daemon.wireless"/>
a<allow send_destination="org.wicd.daemon.wired"/>
a<allow send_interface="org.wicd.daemon.wired"/>
}' 'in/other=wicd.conf.in'
./setup.py configure
touch translations/ast/LC_MESSAGES/wicd.mo # Workaround for whatever bug causes this file not to be generated
./setup.py install # as root