post_install() {
echo "Installing dependencies for electrum through pip..."
LD_PRELOAD='' LDFLAGS="-lpython3.13" MATHLIB="m" "/data/data/com.termux/files/usr/bin/pip3" install --upgrade 'qrcode' 'protobuf>=3.20' 'qdarkstyle>=3.2' 'aiorpcx>=0.25.0,<0.26' 'aiohttp>=3.11.0,<4.0.0' 'aiohttp_socks>=0.9.2' 'certifi' 'jsonpatch' 'electrum_ecc>=0.0.4,<0.1' 'electrum_aionostr>=0.1.0,<0.2' 'attrs>=20.1.0,<23' 'dnspython>=2.2,<2.5' Electrum
if [ -f "/data/data/com.termux/files/usr/bin/py3compile" ]; then
LD_PRELOAD='' "/data/data/com.termux/files/usr/bin/py3compile" -p "electrum" "/data/data/com.termux/files/usr/lib/python3.13/"
fi
exit 0
}
post_upgrade() {
post_install
}
pre_remove() {
if [ -f "/data/data/com.termux/files/usr/bin/py3clean" ]; then
LD_PRELOAD='' "/data/data/com.termux/files/usr/bin/py3clean" -p "electrum"
fi
exit 0
}
