57 lines
2.1 KiB
Bash
57 lines
2.1 KiB
Bash
# Template file for 'chatterino2'
|
|
pkgname=chatterino2
|
|
version=2.1.7
|
|
revision=1
|
|
_signals_commit=1c38746b05d9311e73c8c8acdfdc4d36c9c551be
|
|
_settings_commit=4fe0ff9b0cb7b04f8017a63b38c40104430a4b66
|
|
_humanize_commit=13867379249c64cd44b9cd4c03f18c1a52d56587
|
|
_serialize_commit=86bfa5a14c64aaf1f04a626bbd52a481cf55074a
|
|
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 libsecret-devel"
|
|
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="c017005d1098af9bddafaef013e8d1120cb805101125b3a20df2bd7dd413ccce
|
|
19df585d2242b9b90c6f94cb58aa5e64bf9166c7c2178724d9648bfefd9b8332
|
|
5007b7da4bda1c1c58ad1800c641d9b7bfb9b2d696027220c5e28ced58eb6bf8
|
|
196ebfe37e6cdf61eaa1650b570cd50fcf6d8fc4c0aa408ff540b017d71ec634
|
|
2945e445ecaa183c8678f0c1c33cd0b6957ef2ac9218ac630cced31c147c0b11"
|
|
|
|
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
|
|
}
|