summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 9a3d2899010ad8b9f8ac54203c169609205d94ff (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
# Maintainer: Sarisan Sekoohaka <sekoohaka.sarisan@gmail.com>

pkgname=telegram-bot-api
pkgver=6.0.1
pkgrel=1
pkgdesc="Telegram Bot API server"
arch=('x86_64')
url="https://core.telegram.org/bots"
license=('BSL-1.0')
depends=('openssl' 'zlib' 'gcc-libs')
makedepends=('git' 'gcc>=4.9' 'gperf' 'cmake>=3.0.2')
provides=('telegram-bot-api')
conflicts=('telegram-bot-api-git')
_commit=0dfcb6153af500277fd9388dac3f10aa01008323
_commit1=782670c7dbf278e0ba07fc7e168f39ac154c7238
source=("git+https://github.com/tdlib/telegram-bot-api.git#commit=$_commit"
        "git+https://github.com/tdlib/td.git#commit=$_commit1")
sha256sums=('SKIP'
            'SKIP')

prepare() {
  cd telegram-bot-api
  git submodule init
  git config submodule.td.url ../td
  git submodule update
}

build() {
  mkdir -p telegram-bot-api/build
  cd telegram-bot-api/build
  cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX:PATH="$pkgdir/usr" ..
  cmake --build . 
}

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