mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-04-04 21:32:38 +02:00
42 lines
1.4 KiB
Plaintext
42 lines
1.4 KiB
Plaintext
# Maintainer: Maria Lisina <sekoohaka.sarisan@gmail.com>
|
|
pkgname=telegram-bot-api
|
|
pkgver=7.7
|
|
pkgrel=0
|
|
# they don't tag releases
|
|
_gitrev=9112a6b5359fe5bf71371a43cc1cb08f648ba377
|
|
_td_gitrev=cb164927417f22811c74cd8678ed4a5ab7cb80ba
|
|
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
|
|
"
|
|
builddir="$srcdir/$pkgname-$_gitrev"
|
|
options="!check" # package doesn't have a testsuite
|
|
|
|
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="
|
|
20a1e2f5b7b86a5b1ca02da915a120855524beadd18013dbad99f5e070e4f71f29b48714cd942c62c74bc0e9d63540166d91a51f9d5e49ebfdc52667a6fac6a3 telegram-bot-api-9112a6b5359fe5bf71371a43cc1cb08f648ba377.tar.gz
|
|
5c681ab5eb5b32da0200168c4edb73922e3a75b3e35f89111d7345e4c2a06bf60c96e3e7429200a919b07c47db3c95bd5a1992d1396253fc76ae5d61b19796b1 td-cb164927417f22811c74cd8678ed4a5ab7cb80ba.tar.gz
|
|
"
|