void-packages/srcpkgs/Cutegram/template

33 lines
1.2 KiB
Bash

# Template file for 'Cutegram'
pkgname=Cutegram
version=2.7.1
revision=2
_qt_tools_rev=1.0.0
create_wrksrc=yes
build_wrksrc=$pkgname-${version}-stable
build_style=qmake
configure_args="QMAKE_CFLAGS_ISYSTEM="
hostmakedepends="qt5-qmake"
makedepends="qt5-multimedia-devel qt5-webkit-devel qt5-declarative-devel
qtkeychain-qt5-devel pulseaudio-devel libqtelegram-ae-devel TelegramQML-devel"
depends="qt5-graphicaleffects qt5-quickcontrols qt5-plugin-sqlite"
short_desc="Qt5 Telegram desktop client"
maintainer="Duncaen <duncaen@voidlinux.eu>"
license="GPL-3"
homepage="http://aseman.co/cutegram"
distfiles="
https://github.com/Aseman-Land/$pkgname/archive/v${version}-stable.tar.gz
https://github.com/Aseman-Land/aseman-qt-tools/archive/v${_qt_tools_rev}-stable.tar.gz"
checksum="f1cfc6bd3a1d33c2348f23ea43d923419b33576059791a071f2780db11059cf4
44ad93a205921ed920b7dbcca1ae4d8150d001b06d6f8f01e46da02cc607ece2"
if [ -n "$CROSS_BUILD" ]; then
hostmakedepends+=" qt5-multimedia-devel qt5-webkit-devel qt5-declarative-devel
qtkeychain-qt5-devel pulseaudio-devel libqtelegram-ae-devel TelegramQML-devel"
fi
post_extract() {
rm -rf "${build_wrksrc}/Cutegram/asemantools"
ln -sf "${wrksrc}/aseman-qt-tools-${_qt_tools_rev}-stable" "${build_wrksrc}/Cutegram/asemantools"
}