void-packages/srcpkgs/hangups/template

32 lines
1.0 KiB
Bash

# Template file for 'hangups'
pkgname=hangups
version=0.4.12
revision=2
build_style=python3-module
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=31db2b9843e8f0a4e6ea875d2cff15a770b621e6ac91fa33a899f0cc9fc54be9
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',|" \
-e "s|protobuf>=.*,|protobuf',|" \
-i setup.py
}
post_install() {
vlicense LICENSE
}