35 lines
1.2 KiB
Bash
35 lines
1.2 KiB
Bash
# Template file for 'qtox'
|
|
pkgname=qtox
|
|
version=1.9.0
|
|
revision=1
|
|
build_style=qmake
|
|
short_desc="QT-based TOX instant messenger client"
|
|
maintainer="Spencer Hill <spencernh77@gmail.com>"
|
|
license="GPL-3"
|
|
homepage="https://wiki.tox.chat/clients/qtox"
|
|
hostmakedepends="qt5-qmake pkg-config"
|
|
makedepends="toxcore-devel filteraudio-devel-git ffmpeg-devel qt5-svg-devel
|
|
qt5-tools-devel libopencv-devel libopenal-devel libsodium-devel
|
|
libXScrnSaver-devel gdk-pixbuf-devel gtk+-devel libvpx-devel qrencode-devel
|
|
sqlcipher-devel"
|
|
depends="qt5-plugin-sqlite"
|
|
distfiles="https://github.com/tux3/qTox/archive/v${version}.tar.gz"
|
|
checksum=aceaac0c9cf8c9c98e364c8380f992547f369db6f0ac62505531c0474c7e04d6
|
|
wrksrc="qTox-${version}"
|
|
|
|
pre_configure() {
|
|
case "$XBPS_TARGET_MACHINE" in
|
|
*-musl)
|
|
configure_args+=" ENABLE_SYSTRAY_STATUSNOTIFIER_BACKEND=NO ENABLE_SYSTRAY_UNITY_BACKEND=NO ENABLE_SYSTRAY_GTK_BACKEND=NO"
|
|
;;
|
|
esac
|
|
}
|
|
|
|
do_install() {
|
|
vbin qtox
|
|
vinstall qTox.desktop 644 usr/share/applications
|
|
vinstall img/icons/qtox.svg 644 usr/share/icons/hicolor/scalable/apps
|
|
for _s in 14 16 22 24 32 36 48 64 72 96 128 192 256 512; do
|
|
vinstall "img/icons/${_s}x${_s}/qtox.png" 644 "/usr/share/icons/hicolor/${_s}x${_s}/apps"
|
|
done
|
|
}
|