Add telegram-qt, Qt bindings for Telegram

This commit is contained in:
Lisa Vitolo 2017-06-04 21:32:22 +01:00
parent ec0a2c5b2e
commit c1ba178f6d

32
telegram-qt/PKGBUILD Normal file
View File

@ -0,0 +1,32 @@
# Note: this is a dependency for the telepathy-morse package,
# which handles Telegram in Telepathy.
pkgname=telegram-qt
pkgver=0.1.0
pkgrel=1
pkgdesc="Qt bindings for the Telegram protocol"
arch=('x86_64')
url="https://github.com/Kaffeine/telegram-qt"
license=('GPL')
depends=('qt5-base')
makedepends=('cmake')
source=("https://github.com/Kaffeine/${pkgname}/archive/${pkgname}-${pkgver}.tar.gz")
md5sums=('fcc498a8c2655ee0d9877b1784e76cec')
prepare() {
mkdir -p build
}
build() {
cd build
cmake ../${pkgname}-${pkgname}-${pkgver} \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib \
-DCMAKE_BUILD_TYPE=Release
make
}
package() {
cd build
make DESTDIR="${pkgdir}" install
}