void-packages/srcpkgs/chatterino2/template
2019-12-15 19:24:14 +01:00

56 lines
2 KiB
Bash

# Template file for 'chatterino2'
pkgname=chatterino2
version=2.1.4
revision=1
_signals_commit=1c38746b05d9311e73c8c8acdfdc4d36c9c551be
_settings_commit=a5040463c01e6b0e562eab82e0decb29cab9b450
_humanize_commit=4e00a03623966723f23ca3034c1ad944009cd7be
_serialize_commit=130ffc3ec722284ca454a1e70c5478a75f380144
build_style=qmake
hostmakedepends="qt5-qmake qt5-svg-devel qt5-multimedia-devel
libcommuni-devel"
makedepends="qt5-svg-devel qt5-multimedia-devel
boost-devel rapidjson libcommuni-devel websocketpp"
short_desc="Qt-based twitch chat client"
maintainer="Franc[e]sco <lolisamurai@tfwno.gf>"
license="MIT"
homepage="https://github.com/fourtf/chatterino2"
distfiles="${homepage}/archive/v${version}.tar.gz
https://github.com/pajlada/signals/archive/${_signals_commit}.tar.gz
https://github.com/pajlada/settings/archive/${_settings_commit}.tar.gz
https://github.com/pajlada/humanize/archive/${_humanize_commit}.tar.gz
https://github.com/pajlada/serialize/archive/${_serialize_commit}.tar.gz"
checksum="7f61b6c36ac9fb0a73cd028f317108ec2f29877afa472842b811386c19c5c7ec
19df585d2242b9b90c6f94cb58aa5e64bf9166c7c2178724d9648bfefd9b8332
f387cc7eaf27dec462bc85a212619f8086167cf0b47e11825b8580d35a740dfe
5a5cd8338fcb0a14a4bbe0840f83505d0444a9000956145e85e5550feeb744b0
eb492b89e67f4ec632bd43f2701d53e355f1d1afbec3cd3af5891c1a6aaaa454"
case "${XBPS_TARGET_MACHINE}" in
armv[56]*|ppc|ppc-musl)
makedepends+=" libatomic-devel"
configure_args+="LIBS+=-latomic"
;;
esac
post_extract() {
mv "${XBPS_BUILDDIR}/signals-${_signals_commit}/"* lib/signals/
mv "${XBPS_BUILDDIR}/settings-${_settings_commit}/"* lib/settings/
mv "${XBPS_BUILDDIR}/humanize-${_humanize_commit}/"* lib/humanize/
mv "${XBPS_BUILDDIR}/serialize-${_serialize_commit}/"* lib/serialize/
}
pre_configure() {
# it wraps libcommuni in a namespace but void's binaries don't
find \( -name '*.cpp' -o -name '*.hpp' \) \
-exec sed -i "{}" -e 's/Communi::/::/g' \;
}
do_install() {
for f in chatterino bin/chatterino; do
if [ -f "$f" ]; then
vbin "$f"
fi
done
vlicense LICENSE
}