diff options
author | j.r | 2021-12-05 17:49:00 +0100 |
---|---|---|
committer | j.r | 2021-12-05 17:49:00 +0100 |
commit | ff2b2a199ddb53b1e99b46f1b983a8b52d4ea34c (patch) | |
tree | 1d562fd09a5a93109f4f5e5beabe71c05a1d13c1 | |
parent | dd02054904f2176584f484a1e51dbfa3693cce60 (diff) | |
download | aur-ff2b2a199ddb53b1e99b46f1b983a8b52d4ea34c.tar.gz |
telegram-tg-git: use latest python-telegram
-rw-r--r-- | .SRCINFO | 7 | ||||
-rw-r--r-- | 0001-Change-setup.py-to-accept-new-python-telegram-ver.patch | 23 | ||||
-rw-r--r-- | PKGBUILD | 16 |
3 files changed, 39 insertions, 7 deletions
@@ -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 000000000000..ca6006a6572c --- /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 + @@ -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" |