void-packages/srcpkgs/hangups/template

32 lines
1.0 KiB
Bash

# Template file for 'hangups'
pkgname=hangups
version=0.4.6
revision=1
build_style=python3-module
pycompile_module="hangups"
hostmakedepends="python3-setuptools"
depends="python3-MechanicalSoup python3-readlike python3-ReParser
python3-ConfigArgParse python3-aiohttp python3-async-timeout python3-appdirs
python3-requests python3-protobuf python3-urwid"
short_desc="Third-party text-based user interface for Google Hangouts"
maintainer="Alex Childs <misuchiru03+void@gmail.com>"
license="MIT"
homepage="https://github.com/tdryer/hangups"
distfiles="${homepage}/archive/v${version}.tar.gz"
checksum=bb20f61fe92e030d26fdf9118b9f86a3274eb4e7e4bcb7a1d914768ed0a648b7
pre_build() {
# Remove version constraint on packages that have
# a strict version requirement.
sed -e "s|MechanicalSoup==.*,|MechanicalSoup',|" \
-e "s|urwid==.*,|urwid',|" \
-e "s|ReParser==.*,|ReParser',|" \
-e "s|ConfigArgParse==.*,|ConfigArgParse',|" \
-e "s|readlike==.*,|readlike',|" \
-i setup.py
}
post_install() {
vlicense LICENSE
}