52 lines
2.0 KiB
Bash
52 lines
2.0 KiB
Bash
# Template file for 'chatterino2'
|
|
pkgname=chatterino2
|
|
version=2.2.2
|
|
revision=1
|
|
_signals_commit=6665ccad90461c01b7fe704a98a835953d644156
|
|
_settings_commit=a5040463c01e6b0e562eab82e0decb29cab9b450
|
|
_humanize_commit=4e00a03623966723f23ca3034c1ad944009cd7be
|
|
_serialize_commit=130ffc3ec722284ca454a1e70c5478a75f380144
|
|
build_style=qmake
|
|
hostmakedepends="qt5-qmake qt5-svg-devel qt5-multimedia-devel
|
|
libcommuni-devel pkg-config"
|
|
makedepends="qt5-svg-devel qt5-multimedia-devel
|
|
boost-devel rapidjson libcommuni-devel websocketpp
|
|
qtkeychain-qt5-devel"
|
|
short_desc="Qt-based twitch chat client"
|
|
maintainer="Franc[e]sco <lolisamurai@tfwno.gf>"
|
|
license="MIT"
|
|
homepage="https://chatterino.com"
|
|
changelog="https://chatterino.com/changelog"
|
|
distfiles="https://github.com/fourtf/chatterino2/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="6e3d64f319728ccf9fd09613df754108157e7d3b4148ee2da1a3209bf369be70
|
|
e8755e68ff6fc39b4338d424ee9aed2ed5a8eab6eb37af69de2ff21b8dc94e66
|
|
f387cc7eaf27dec462bc85a212619f8086167cf0b47e11825b8580d35a740dfe
|
|
5a5cd8338fcb0a14a4bbe0840f83505d0444a9000956145e85e5550feeb744b0
|
|
eb492b89e67f4ec632bd43f2701d53e355f1d1afbec3cd3af5891c1a6aaaa454"
|
|
|
|
if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
|
|
makedepends+=" libatomic-devel"
|
|
configure_args+=" LIBS+=-latomic"
|
|
fi
|
|
|
|
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' \;
|
|
}
|
|
|
|
post_install() {
|
|
vlicense LICENSE
|
|
}
|