Skip to content

Instantly share code, notes, and snippets.

@yacuken yacuken/tdlib-v1.3.0.patch Secret
Last active Sep 12, 2018

Embed
What would you like to do?
diff --git a/PKGBUILD b/PKGBUILD
index 037e2a1..080cee1 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,8 +2,8 @@
_pkgname=telegram-tdlib
pkgname=${_pkgname}
-pkgver=1.2.0
-pkgrel=2
+pkgver=1.3.0
+pkgrel=1
pkgdesc='Cross-platform library for building Telegram clients'
arch=('i686' 'x86_64')
url='https://core.telegram.org/tdlib'
@@ -13,41 +13,19 @@ makedepends=('make' 'gcc' 'cmake' 'gperf')
provides=('telegram-tdlib')
conflicts=('telegram-tdlib')
source=("https://github.com/tdlib/td/archive/v$pkgver.tar.gz")
-md5sums=('9ab1a9e97d7340dd0c1efd8453467cc7')
+md5sums=('0f9ba83b29686ae7d40a0f227ff3cc6f')
build() {
cd "${srcdir}/td-$pkgver"
mkdir -p build
cd build
- cmake -DCMAKE_BUILD_TYPE=Release ..
+ cmake -DCMAKE_INSTALL_PREFIX="${pkgdir}/usr" -DCMAKE_BUILD_TYPE=Release ..
cmake --build .
}
package() {
- cd "${srcdir}/td-$pkgver"
- mkdir -p $pkgdir/usr/{lib,include}
- mkdir -p $pkgdir/usr/include/td/telegram
- mkdir -p $pkgdir/usr/include/td/tl
-
- # Libs
- install -m 644 build/libtdjson.so ${pkgdir}/usr/lib/
- install -m 644 build/libtdjson_static.a ${pkgdir}/usr/lib/
- install -m 644 build/libtdjson_private.a ${pkgdir}/usr/lib/
- install -m 644 build/libtdclient.a ${pkgdir}/usr/lib/
- install -m 644 build/libtdcore.a ${pkgdir}/usr/lib/
-
- install -m 644 build/tdutils/libtdutils.a ${pkgdir}/usr/lib/
- install -m 644 build/tdactor/libtdactor.a ${pkgdir}/usr/lib/
- install -m 644 build/tdnet/libtdnet.a ${pkgdir}/usr/lib/
- install -m 644 build/sqlite/libtdsqlite.a ${pkgdir}/usr/lib/
- install -m 644 build/tddb/libtddb.a ${pkgdir}/usr/lib/
-
- # Headers
- install -m 644 td/telegram/td_json_client.h ${pkgdir}/usr/include/td/telegram
- install -m 644 td/telegram/td_log.h ${pkgdir}/usr/include/td/telegram
- install -m 644 build/td/telegram/tdjson_export.h ${pkgdir}/usr/include/td/telegram
- install -m 644 td/telegram/Client.h ${pkgdir}/usr/include/td/telegram
- install -m 644 td/telegram/Log.h ${pkgdir}/usr/include/td/telegram
- install -m 644 td/tl/TlObject.h ${pkgdir}/usr/include/td/tl
+ cd "${srcdir}/td-$pkgver/build"
+ mkdir -p ${pkgdir}/usr
+ cmake --build . --target install
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.