desktop/telegramqml/PKGBUILD
2017-11-08 13:06:17 +00:00

35 lines
934 B
Bash

pkgname=telegramqml
_pkgname=TelegramQML
pkgver=2.0.0+35+g56fb7c9
pkgrel=1
pkgdesc="Telegram API tools for QtQml and Qml"
arch=('x86_64')
url="https://github.com/Aseman-Land/TelegramQML"
license=('GPL')
depends=('qt5-base' 'qt5-declarative' 'qt5-multimedia'
'qt5-webkit' 'qt5-imageformats' 'qt5-graphicaleffects'
'qt5-quickcontrols' 'libqtelegram-ae')
source=("$pkgname"::"git+https://github.com/Aseman-Land/TelegramQML.git#commit=56fb7c9ac10617dd3a4e554aa8f38add7e909ee8")
sha256sums=('SKIP')
pkgver() {
cd "${srcdir}/${pkgname}"
git describe --long | sed 's/\([^-]*-g\)/\1/;s/-/+/g' | sed 's/.stable//g' | sed 's/v//g'
}
prepare() {
cd "${srcdir}/${pkgname}"
mkdir -p build
}
build() {
cd "${srcdir}/${pkgname}/build"
qmake-qt5 -r .. PREFIX=/usr INSTALL_LIBS_PREFIX=/usr/lib QMAKE_CFLAGS_ISYSTEM=
make
}
package() {
cd "${srcdir}/${pkgname}/build"
make INSTALL_ROOT="${pkgdir}" install
}