summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorj.r2020-09-18 20:41:42 +0200
committerj.r2020-09-18 20:41:42 +0200
commit092e7e6b84d6eb14bae3cd98fcb91eae8ca4e998 (patch)
tree71c1b694736f165d6ed066a83cc3c27227c1999e /PKGBUILD
parenta52383dddb261d8e4ed8c20e583033bed3c97fc2 (diff)
downloadaur-092e7e6b84d6eb14bae3cd98fcb91eae8ca4e998.tar.gz
Add patches to use system wide tdlib
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD15
1 files changed, 13 insertions, 2 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 50961a34042..f103aa6f42e 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -8,8 +8,19 @@ url="https://github.com/alexander-akhmetov/python-telegram"
license=('MIT')
depends=('python3')
conflicts=('python-telegram-bot')
-source=("$pkgname-$pkgver.tar.gz::https://github.com/alexander-akhmetov/$pkgname/archive/$pkgver.tar.gz")
-md5sums=('ebf3e34648e21da96e6470474e0fd7eb')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/alexander-akhmetov/$pkgname/archive/$pkgver.tar.gz"
+ "0001-Use-system-tdlib.diff"
+ "0002-Remove-binarys.diff")
+md5sums=('ebf3e34648e21da96e6470474e0fd7eb'
+ '287acb342038ba44bb86cdc2c6cb303b'
+ 'c9085c229e25cab11bffd1431c220ef1')
+
+prepare() {
+ cd "${pkgname}-${pkgver}"
+ patch -p1 -i ${srcdir}/0001-Use-system-tdlib.diff
+ patch -p1 -i ${srcdir}/0002-Remove-binarys.diff
+ rm -r telegram/lib
+}
build() {
cd "$pkgname-$pkgver"