mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-06-04 07:44:59 +02:00
42 lines
1.4 KiB
Text
42 lines
1.4 KiB
Text
# Maintainer: Maria Lisina <sekoohaka.sarisan@gmail.com>
|
|
pkgname=telegram-bot-api
|
|
pkgver=9.0
|
|
pkgrel=0
|
|
# they don't tag releases
|
|
_gitrev=8be1f0058c8f6938418a82092363ffb58e7222eb
|
|
_td_gitrev=a03a90470d6fca9a5a3db747ba3f3e4a465b5fe7
|
|
pkgdesc="Telegram Bot API server"
|
|
url="https://core.telegram.org/bots"
|
|
arch="all !s390x" # td fails to build on big-endian
|
|
license="BSL-1.0"
|
|
makedepends="cmake gperf linux-headers openssl-dev samurai zlib-dev"
|
|
source="$pkgname-$_gitrev.tar.gz::https://github.com/tdlib/telegram-bot-api/archive/$_gitrev.tar.gz
|
|
td-$_td_gitrev.tar.gz::https://github.com/tdlib/td/archive/$_td_gitrev.tar.gz
|
|
"
|
|
options="!check" # package doesn't have a testsuite
|
|
|
|
builddir="$srcdir/$pkgname-$_gitrev"
|
|
|
|
prepare() {
|
|
default_prepare
|
|
|
|
rm -fr "$builddir/td"
|
|
ln -sf "$srcdir/td-$_td_gitrev" "$builddir/td"
|
|
}
|
|
|
|
build() {
|
|
cmake -B build -G Ninja \
|
|
-DCMAKE_BUILD_TYPE=MinSizeRel \
|
|
-DCMAKE_INSTALL_PREFIX=/usr
|
|
|
|
cmake --build build
|
|
}
|
|
|
|
package() {
|
|
DESTDIR="$pkgdir" cmake --install build
|
|
}
|
|
|
|
sha512sums="
|
|
e45254346893558b8409c359fd4d575b5d90e4040a4718bda3826f062ed8ba9a7108ebcd259d05c7630bc16b90e7d49c7802992a916ca0100a1b5c0a0cae9502 telegram-bot-api-8be1f0058c8f6938418a82092363ffb58e7222eb.tar.gz
|
|
19002085a4abe329b2a593df2c0027c98f00253f73c0901f0b94100460e858f8686fff206daf37af21121c8995ab25771141d72719b14e76bef05b008f9fbebb td-a03a90470d6fca9a5a3db747ba3f3e4a465b5fe7.tar.gz
|
|
"
|