summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 7e8668f53aef6437f9abc1026bc209c68d5920d1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# Maintainer: Fox archlinux@foxfromabyss.dev

pkgname=telegram-tdlib-git
pkgver=1.8.9
pkgrel=1
pkgdesc='Cross-platform library for building Telegram clients'
arch=('i686' 'x86_64' 'armv7h')
url='https://core.telegram.org/tdlib'
license=('Boost')
depends=('openssl' 'zlib')
makedepends=('make' 'gcc' 'cmake' 'gperf' 'git')
provides=('telegram-tdlib=${pkgver}' 'telegram-tdlib')
conflicts=('telegram-tdlib')
source=("git+https://github.com/tdlib/td.git")
sha256sums=('SKIP')

pkgver() {
  grep -oP '(?<=TDLib VERSION )\S+' td/CMakeLists.txt
}

build() {
  mkdir -p "td/build"
  cd "td/build"
  cmake -DCMAKE_INSTALL_PREFIX="${pkgdir}/usr" -DCMAKE_BUILD_TYPE=Release ..
  cmake --build .
}

package() {
  cd "td/build"
  mkdir -p ${pkgdir}/usr
  cmake --build . --target install
}