void-packages/srcpkgs/TelegramQML/template
2018-01-09 12:11:22 +01:00

34 lines
1,004 B
Bash

# Template file for 'TelegramQML'
pkgname=TelegramQML
version=0.9.2
revision=2
wrksrc=${pkgname}-${version}
build_style=qmake
configure_args="BUILD_MODE+=lib QMAKE_CFLAGS_ISYSTEM="
hostmakedepends="qt5-qmake"
makedepends="qt5-declarative-devel qt5-multimedia-devel libqtelegram-ae-devel
pulseaudio-devel"
short_desc="Telegram API tools for QtQml and Qml"
maintainer="Duncaen <duncaen@voidlinux.eu>"
license="GPL-3"
homepage="https://github.com/Aseman-Land/TelegramQML"
distfiles="https://github.com/Aseman-Land/$pkgname/archive/v${version}.tar.gz"
checksum=16d6429fe180531af167dc44bcc799e82b08c9cfa88f1f635155dfcef2558397
if [ -n "$CROSS_BUILD" ]; then
hostmakedepends+=" qt5-declarative-devel qt5-multimedia-devel libqtelegram-ae-devel
pulseaudio-devel"
fi
pre_configure() {
sed -i 's,$$LIB_PATH,,' telegramqml.pro
}
TelegramQML-devel_package() {
depends="${sourcepkg}>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/*.so
}
}