void-packages/srcpkgs/libqtelegram-ae/template

35 lines
1.0 KiB
Bash

# Template file for 'libqtelegram-ae'
pkgname=libqtelegram-ae
reverts=10.0.0_1
version=6.1
revision=8
wrksrc=${pkgname/-ae/-aseman-edition}-${version}-stable
build_style=qmake
# See https://github.com/Aseman-Land/libqtelegram-aseman-edition/issues/44
configure_args="QMAKE_CFLAGS_ISYSTEM="
hostmakedepends="qt5-qmake"
makedepends="qt5-multimedia-devel pulseaudio-devel"
short_desc="A libqtelegram fork by Aseman Team"
maintainer="Duncaen <duncaen@voidlinux.eu>"
license="GPL-3"
homepage="https://github.com/Aseman-Land/libqtelegram-aseman-edition"
distfiles="https://github.com/Aseman-Land/libqtelegram-aseman-edition/archive/v${version}-stable.tar.gz"
checksum=ffc1f85a7b0cdd16149c89722f33c43de9fa3db15271d0ff26734ba35e0a02c0
if [ -n "$CROSS_BUILD" ]; then
hostmakedepends+=" qt5-multimedia-devel pulseaudio-devel"
fi
pre_configure() {
sed -i 's,$$LIB_PATH,,' libqtelegram-ae.pro
}
libqtelegram-ae-devel_package() {
depends="${sourcepkg}>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/*.so
}
}