summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO7
-rw-r--r--0001-Change-setup.py-to-accept-new-python-telegram-ver.patch23
-rw-r--r--PKGBUILD16
3 files changed, 39 insertions, 7 deletions
diff --git a/.SRCINFO b/.SRCINFO
index ed84e4cf34c..02490dbdc59 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,12 +1,12 @@
pkgbase = telegram-tg-git
pkgdesc = terminal telegram client that really works
- pkgver = 0.17.0.r4.7511565
+ pkgver = 0.17.0.r8.c2f5fca
pkgrel = 1
url = https://github.com/paul-nameless/tg
arch = any
license = Unlicense
makedepends = git
- depends = python-telegram=0.14.0
+ depends = python-telegram=0.15.0
depends = python3
depends = python-setuptools
optdepends = libnotify: for notifications, you could also use other programs: see config
@@ -18,7 +18,8 @@ pkgbase = telegram-tg-git
provides = telegram-tg
conflicts = telegram-tg
source = telegram-tg::git+https://github.com/paul-nameless/tg.git
+ source = 0001-Change-setup.py-to-accept-new-python-telegram-ver.patch
md5sums = SKIP
+ md5sums = 1977134e8c8fcd093d7081877711255d
pkgname = telegram-tg-git
-
diff --git a/0001-Change-setup.py-to-accept-new-python-telegram-ver.patch b/0001-Change-setup.py-to-accept-new-python-telegram-ver.patch
new file mode 100644
index 00000000000..ca6006a6572
--- /dev/null
+++ b/0001-Change-setup.py-to-accept-new-python-telegram-ver.patch
@@ -0,0 +1,23 @@
+From ac8b551d16feb2fd9dbc5b1bfac4057ce6e9ef87 Mon Sep 17 00:00:00 2001
+From: "j.r" <j.r@jugendhacker.de>
+Date: Tue, 29 Dec 2020 14:44:26 +0100
+Subject: [PATCH] Change setup.py to accept new python-telegram ver
+
+---
+ setup.py | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/setup.py b/setup.py
+index 2455e78..011eed7 100644
+--- a/setup.py
++++ b/setup.py
+@@ -22,5 +22,5 @@ setup(
+ packages=["tg"],
+ entry_points={"console_scripts": ["tg = tg.__main__:main"]},
+ python_requires=">=3.8",
+- install_requires=["python-telegram==0.14.0"],
++ install_requires=["python-telegram==0.15.0"],
+ )
+--
+2.34.1
+
diff --git a/PKGBUILD b/PKGBUILD
index 852fabdb936..e84453740d5 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,13 +1,13 @@
# Maintainer: j.r <j.r@jugendhacker.de>
_pkgname=telegram-tg
pkgname=$_pkgname-git
-pkgver=0.17.0.r4.7511565
+pkgver=0.17.0.r8.c2f5fca
pkgrel=1
pkgdesc="terminal telegram client that really works"
arch=(any)
url="https://github.com/paul-nameless/tg"
license=('Unlicense')
-depends=('python-telegram=0.14.0' 'python3' 'python-setuptools')
+depends=('python-telegram=0.15.0' 'python3' 'python-setuptools')
makedepends=('git')
optdepends=(
'libnotify: for notifications, you could also use other programs: see config'
@@ -19,8 +19,10 @@ optdepends=(
)
provides=("$_pkgname")
conflicts=("$_pkgname")
-source=("$_pkgname::git+https://github.com/paul-nameless/tg.git")
-md5sums=('SKIP')
+source=("$_pkgname::git+https://github.com/paul-nameless/tg.git"
+ "0001-Change-setup.py-to-accept-new-python-telegram-ver.patch")
+md5sums=('SKIP'
+ '1977134e8c8fcd093d7081877711255d')
pkgver() {
cd "$srcdir/$_pkgname"
@@ -28,6 +30,12 @@ pkgver() {
printf "%s" "$(git describe --long --tags | sed 's/\([^-]*-\)g/r\1/;s/-/./g;s/\(v\)\(.*\)/\2/')"
}
+prepare() {
+ cd "$srcdir/$_pkgname"
+
+ patch -p1 -i "$srcdir/0001-Change-setup.py-to-accept-new-python-telegram-ver.patch"
+}
+
build() {
cd "$srcdir/$_pkgname"