void-packages/srcpkgs/qtox/template

30 lines
1 KiB
Bash

# Template file for 'qtox'
pkgname="qtox"
reverts="20150325_2"
version="1.1"
revision=5
short_desc="QT-based TOX instant messenger client"
maintainer="Stefan Mühlinghaus <jazzman@alphabreed.com>"
license="GPL-3"
homepage="https://wiki.tox.im/QTox"
hostmakedepends="qt5-qmake"
makedepends="toxcore-devel-git 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"
distfiles="https://github.com/tux3/qTox/archive/v${version}.tar.gz"
checksum=0507b0708295cd5eabe750b3e9e2c92a7970c554262d7714f6cbad26b17b718a
build_style="gnu-makefile"
wrksrc="qTox-${version}"
do_configure() {
qmake
}
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/qtox-${_s}x${_s}.png" 644 "/usr/share/icons/hicolor/${_s}x${_s}/apps" qtox.png
done
}