# Maintainer: Mike Kazantsev pkgname=telegram-tdlib-purple-git pkgver=r275.66f9c98 pkgrel=6 pkgdesc='libpurple/pidgin Telegram plugin implemented using official tdlib client library.' arch=(any) url='https://github.com/ars3niy/tdlib-purple' license=(GPL2 LGPL2.1 custom:FTL custom:PIX custom:RPD custom:SKIA custom:STB) depends=(libpurple libpng libwebp telegram-tdlib libtgvoip) makedepends=(cmake git) source=($pkgname::git+"$url") sha256sums=(SKIP) pkgver() { cd $pkgname printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" } build() { cd $pkgname mkdir -p build cd build cmake -Dtgvoip_INCLUDE_DIRS=/usr/include/tgvoip .. make } package() { cd $pkgname install -Dm755 -t "$pkgdir$(pkg-config --variable plugindir purple)" build/libtelegram-tdlib.so install -Dm644 -t "$pkgdir/usr/share/licenses/$pkgname" rlottie/licenses/* }