blob: b302a7e8e125bbd8f7dbf04738d1fbc6863e7ac4 (
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
33
34
35
36
37
38
39
40
41
42
43
44
|
# Maintainer: j.r <j.r@jugendhacker.de>
# Contributor: Felix Serrano Blanco <felixseblanc@gmail.com>
pkgname=libtd
pkgver=1.8.3
pkgrel=1
pkgdesc="Cross-platform library for building Telegram clients "
arch=('x86_64')
url='https://core.telegram.org/tdlib'
license=('Boost')
depends=(
'openssl'
'zlib'
'gcc-libs'
)
makedepends=(
'git'
'clang>=3.4'
'cmake>=3.0.2'
'gperf'
'php'
)
provides=('libtd')
conflicts=('telegram-tdlib')
_commit=054a823c1a812ee3e038f702c6d8ba3e6974be9c
source=("$pkgname::git+https://github.com/tdlib/td.git#commit=$_commit")
md5sums=('SKIP')
build() {
cd "$srcdir"
CC=/usr/bin/clang
CXX=/usr/bin/clang++
cmake -B build -S "$pkgname" -DCMAKE_BUILD_TYPE=None -DCMAKE_INSTALL_PREFIX:PATH="$pkgdir/usr" -Wno-dev
make -C build prepare_cross_compiling
cd "$pkgname"
php SplitSource.php
cd ..
make -C build
}
package() {
cd "$srcdir"
make -C build install
}
|