hasufell-repository/packages/net-p2p/pybitmessage/pybitmessage-0.6.3.2.exheres-0

69 lines
2.1 KiB
Bash
Raw Permalink Normal View History

# Copyright 2016 Julian Ospald
# Distributed under the terms of the GNU General Public License v2
2018-03-23 18:36:38 +00:00
require github [ user=Bitmessage project=PyBitmessage tag=${PV} ]
require gtk-icon-cache
2017-03-12 19:09:16 +00:00
require python [ blacklist=3 has_bin=true multibuild=false python_opts='[sqlite]' ]
SUMMARY="P2P communications protocol"
DESCRIPTION="
Bitmessage is a P2P communications protocol used to send encrypted messages to
another person or to many subscribers. It is decentralized and trustless,
meaning that you need-not inherently trust any entities like root certificate
authorities. It uses strong authentication, which means that the sender of a
message cannot be spoofed, and it aims to hide 'non-content' data, like the
sender and receiver of messages, from passive eavesdroppers like those running
warrantless wiretapping programs.
"
HOMEPAGE+=" https://bitmessage.org"
LICENCES="MIT"
SLOT="0"
PLATFORMS="~amd64 ~x86"
MYOPTIONS="
( providers: libressl openssl ) [[ number-selected = exactly-one ]]
"
DEPENDENCIES="
run:
dev-python/PyQt4[python_abis:*(-)?]
dev-python/msgpack[python_abis:*(-)?]
providers:libressl? ( dev-libs/libressl )
providers:openssl? ( dev-libs/openssl )
suggestion:
2018-03-23 18:36:38 +00:00
dev-python/pyopencl[python_abis:*(-)?] [[ description = [ Use GPU acceleration for proof of work ] ]]
2017-03-12 19:09:16 +00:00
media-sound/mpg123 [[ description = [ For playing mp3 files ] ]]
net-misc/tor [[ description = [ For running bitmessage traffic
through the tor network ] ]]
2017-03-12 19:09:16 +00:00
sys-sound/alsa-utils [[ description = [ For playing wav files ] ]]
"
BUGS_TO="hasufell@posteo.de"
src_install() {
local SITEDIR="$(python_get_sitedir)/${PN}"
herebin ${PN} <<EOF
#!/bin/sh
cd "${SITEDIR}"
exec "${PYTHON}" "./bitmessagemain.py"
EOF
insinto "${SITEDIR}"
doins -r src/*
emagicdocs
doman man/*
insinto /usr/share/icons/hicolor/24x24/apps
newins desktop/icon24.png ${PN}.png
insinto /usr/share/icons/hicolor/scalable/apps
newins desktop/can-icon.svg ${PN}.svg
insinto /usr/share/applications
doins desktop/${PN}.desktop
python_bytecompile
}