aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--testing/telegram-tdlib/APKBUILD35
1 files changed, 35 insertions, 0 deletions
diff --git a/testing/telegram-tdlib/APKBUILD b/testing/telegram-tdlib/APKBUILD
new file mode 100644
index 0000000000..d35190ded6
--- /dev/null
+++ b/testing/telegram-tdlib/APKBUILD
@@ -0,0 +1,35 @@
+# Contributor: Oleg Titov <oleg.titov@gmail.com>
+# Maintainer: Oleg Titov <oleg.titov@gmail.com>
+pkgname=telegram-tdlib
+pkgver=1.4.0
+pkgrel=0
+pkgdesc="Cross-platform library for building Telegram clients"
+url="https://core.telegram.org/tdlib"
+arch="all"
+license="BSL-1.0"
+options="!check" # No test suite from upstream
+makedepends="cmake openssl-dev zlib-dev gperf linux-headers"
+subpackages="$pkgname-static $pkgname-dev $pkgname-doc"
+source="$pkgname-$pkgver.tar.gz::https://github.com/tdlib/td/archive/v$pkgver.tar.gz"
+builddir="$srcdir/td-$pkgver"
+
+build() {
+ mkdir build
+
+ cmake -B build \
+ -DCMAKE_BUILD_TYPE=Release \
+ -DCMAKE_INSTALL_PREFIX:PATH="$pkgdir/usr"
+
+ make -C build
+}
+
+package() {
+ make -C build install
+
+ install -m644 -D -t "$pkgdir/usr/share/licenses/$pkgname" \
+ LICENSE_1_0.txt
+ install -m644 -D -t "$pkgdir/usr/share/doc/$pkgname" \
+ README.md
+}
+
+sha512sums="6484d09408afbca2062cc87080b536431a9a6bd4179b220a0335d8aef591de5d35c99906e8d67c0d8c684b02b63b82d12bd064dc265d2416561c1136051eb4b1 telegram-tdlib-1.4.0.tar.gz"