Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] New package: telegram-tg-0.12.0
@ 2021-04-23 18:27 begss
  2021-04-25 18:30 ` Piraty
                   ` (22 more replies)
  0 siblings, 23 replies; 24+ messages in thread
From: begss @ 2021-04-23 18:27 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1593 bytes --]

There is a new pull request by begss against master on the void-packages repository

https://github.com/begss/void-packages telegram-tg
https://github.com/void-linux/void-packages/pull/30458

New package: telegram-tg-0.12.0
<!-- Mark items with [x] where applicable -->

#### General
- [x] This is a new package and it conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements)

#### Have the results of the proposed changes been tested?
- [x] I use the packages affected by the proposed changes on a regular basis and confirm this PR works for me
- [ ] I generally don't use the affected packages but briefly tested this PR

<!--
If GitHub CI cannot be used to validate the build result (for example, if the
build is likely to take several hours), make sure to
[skip CI](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration).
When skipping CI, uncomment and fill out the following section.
Note: for builds that are likely to complete in less than 2 hours, it is not
acceptable to skip CI.
-->
<!-- 
#### Does it build and run successfully? 
(Please choose at least one native build and, if supported, at least one cross build. More are better.)
- [ ] I built this PR locally for my native architecture, (ARCH-LIBC)
- [ ] I built this PR locally for these architectures (if supported. mark crossbuilds):
  - [ ] aarch64-musl
  - [ ] armv7l
  - [ ] armv6l-musl
-->


A patch file from https://github.com/void-linux/void-packages/pull/30458.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-telegram-tg-30458.patch --]
[-- Type: text/x-diff, Size: 3169 bytes --]

From 9e7e72c67393edea0d2029863ec175440ed857ae Mon Sep 17 00:00:00 2001
From: Maxim Karasev <begs@disroot.org>
Date: Fri, 23 Apr 2021 22:21:40 +0300
Subject: [PATCH 1/2] New package: python3-telegram-0.14.0

---
 .../patches/use-system-tdlib.patch             | 18 ++++++++++++++++++
 srcpkgs/python3-telegram/template              | 18 ++++++++++++++++++
 2 files changed, 36 insertions(+)
 create mode 100644 srcpkgs/python3-telegram/patches/use-system-tdlib.patch
 create mode 100644 srcpkgs/python3-telegram/template

diff --git a/srcpkgs/python3-telegram/patches/use-system-tdlib.patch b/srcpkgs/python3-telegram/patches/use-system-tdlib.patch
new file mode 100644
index 000000000000..f0fe73215288
--- /dev/null
+++ b/srcpkgs/python3-telegram/patches/use-system-tdlib.patch
@@ -0,0 +1,18 @@
+diff --git a/telegram/tdjson.py b/telegram/tdjson.py
+index 091145e..142654e 100644
+--- telegram/tdjson.py
++++ telegram/tdjson.py
+@@ -10,12 +10,7 @@ logger = logging.getLogger(__name__)
+ 
+ 
+ def _get_tdjson_lib_path() -> str:
+-    if platform.system().lower() == 'darwin':
+-        lib_name = 'darwin/libtdjson.dylib'
+-    else:
+-        lib_name = 'linux/libtdjson.so'
+-
+-    return pkg_resources.resource_filename('telegram', f'lib/{lib_name}')
++    return '/usr/lib/libtdjson.so.1.7.0'
+ 
+ 
+ class TDJson:
diff --git a/srcpkgs/python3-telegram/template b/srcpkgs/python3-telegram/template
new file mode 100644
index 000000000000..f37b8cbe59aa
--- /dev/null
+++ b/srcpkgs/python3-telegram/template
@@ -0,0 +1,18 @@
+# Template file for 'python3-telegram'
+pkgname=python3-telegram
+version=0.14.0
+revision=1
+wrksrc=python-telegram-${version}
+build_style=python3-module
+hostmakedepends="python3-setuptools"
+depends="libtd"
+short_desc="Python library for building Telegram clients"
+maintainer="Maxim Karasev <begs@disroot.org>"
+license="MIT"
+homepage="https://github.com/alexander-akhmetov/python-telegram"
+distfiles="${PYPI_SITE}/p/python-telegram/python-telegram-${version}.tar.gz"
+checksum=d3b08469ed06f6599ac4acfe89c697f3c99b55dec476c475c237f6decf238376
+
+do_configure() {
+	rm -r telegram/lib
+}

From ab6fee98f40e3774e2a93783156384ff0e5ef861 Mon Sep 17 00:00:00 2001
From: Maxim Karasev <begs@disroot.org>
Date: Fri, 23 Apr 2021 22:23:31 +0300
Subject: [PATCH 2/2] New package: telegram-tg-0.12.0

---
 srcpkgs/telegram-tg/template | 14 ++++++++++++++
 1 file changed, 14 insertions(+)
 create mode 100644 srcpkgs/telegram-tg/template

diff --git a/srcpkgs/telegram-tg/template b/srcpkgs/telegram-tg/template
new file mode 100644
index 000000000000..2763bcac1d7c
--- /dev/null
+++ b/srcpkgs/telegram-tg/template
@@ -0,0 +1,14 @@
+# Template file for 'telegram-tg'
+pkgname=telegram-tg
+version=0.12.0
+revision=1
+wrksrc=tg-${version}
+build_style=python3-module
+hostmakedepends="python3-setuptools"
+depends="python3-telegram ffmpeg fzf libnotify urlview"
+short_desc="Terminal Telegram client"
+maintainer="Maxim Karasev <begs@disroot.org>"
+license="Unlicense"
+homepage="https://github.com/paul-nameless/tg"
+distfiles="${PYPI_SITE}/t/tg/tg-${version}.tar.gz"
+checksum=77c3630d1c6893ea543beec5a2d97097ecbde0b402b0627989c4be39e32fda8e

^ permalink raw reply	[flat|nested] 24+ messages in thread

* Re: New package: telegram-tg-0.12.0
  2021-04-23 18:27 [PR PATCH] New package: telegram-tg-0.12.0 begss
@ 2021-04-25 18:30 ` Piraty
  2021-04-25 21:42 ` FollieHiyuki
                   ` (21 subsequent siblings)
  22 siblings, 0 replies; 24+ messages in thread
From: Piraty @ 2021-04-25 18:30 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 199 bytes --]

New comment by Piraty on void-packages repository

https://github.com/void-linux/void-packages/pull/30458#issuecomment-826368733

Comment:
please take a look at why `do_check()` fails for some archs

^ permalink raw reply	[flat|nested] 24+ messages in thread

* Re: New package: telegram-tg-0.12.0
  2021-04-23 18:27 [PR PATCH] New package: telegram-tg-0.12.0 begss
  2021-04-25 18:30 ` Piraty
@ 2021-04-25 21:42 ` FollieHiyuki
  2021-04-26 14:34 ` [PR PATCH] [Updated] " begss
                   ` (20 subsequent siblings)
  22 siblings, 0 replies; 24+ messages in thread
From: FollieHiyuki @ 2021-04-25 21:42 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 276 bytes --]

New comment by FollieHiyuki on void-packages repository

https://github.com/void-linux/void-packages/pull/30458#issuecomment-826394614

Comment:
There is no test to run so we should add `do_check=no` there.
And don't add `fzf, urlview, ffmpeg` to depends. They are optional.

^ permalink raw reply	[flat|nested] 24+ messages in thread

* Re: [PR PATCH] [Updated] New package: telegram-tg-0.12.0
  2021-04-23 18:27 [PR PATCH] New package: telegram-tg-0.12.0 begss
  2021-04-25 18:30 ` Piraty
  2021-04-25 21:42 ` FollieHiyuki
@ 2021-04-26 14:34 ` begss
  2021-04-26 18:36 ` New package: telegram-tg-0.15.0 FollieHiyuki
                   ` (19 subsequent siblings)
  22 siblings, 0 replies; 24+ messages in thread
From: begss @ 2021-04-26 14:34 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1598 bytes --]

There is an updated pull request by begss against master on the void-packages repository

https://github.com/begss/void-packages telegram-tg
https://github.com/void-linux/void-packages/pull/30458

New package: telegram-tg-0.12.0
<!-- Mark items with [x] where applicable -->

#### General
- [x] This is a new package and it conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements)

#### Have the results of the proposed changes been tested?
- [x] I use the packages affected by the proposed changes on a regular basis and confirm this PR works for me
- [ ] I generally don't use the affected packages but briefly tested this PR

<!--
If GitHub CI cannot be used to validate the build result (for example, if the
build is likely to take several hours), make sure to
[skip CI](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration).
When skipping CI, uncomment and fill out the following section.
Note: for builds that are likely to complete in less than 2 hours, it is not
acceptable to skip CI.
-->
<!-- 
#### Does it build and run successfully? 
(Please choose at least one native build and, if supported, at least one cross build. More are better.)
- [ ] I built this PR locally for my native architecture, (ARCH-LIBC)
- [ ] I built this PR locally for these architectures (if supported. mark crossbuilds):
  - [ ] aarch64-musl
  - [ ] armv7l
  - [ ] armv6l-musl
-->


A patch file from https://github.com/void-linux/void-packages/pull/30458.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-telegram-tg-30458.patch --]
[-- Type: text/x-diff, Size: 4669 bytes --]

From 8ad56a6f77a6b42fa57d1d78ba7e05dd1c8f0b18 Mon Sep 17 00:00:00 2001
From: Maxim Karasev <begs@disroot.org>
Date: Mon, 26 Apr 2021 18:32:22 +0300
Subject: [PATCH 1/2] New package: python3-telegram-0.14.0

---
 srcpkgs/python3-telegram/files/LICENSE        | 21 +++++++++++++++++
 .../patches/use-system-tdlib.patch            | 18 +++++++++++++++
 srcpkgs/python3-telegram/template             | 23 +++++++++++++++++++
 3 files changed, 62 insertions(+)
 create mode 100644 srcpkgs/python3-telegram/files/LICENSE
 create mode 100644 srcpkgs/python3-telegram/patches/use-system-tdlib.patch
 create mode 100644 srcpkgs/python3-telegram/template

diff --git a/srcpkgs/python3-telegram/files/LICENSE b/srcpkgs/python3-telegram/files/LICENSE
new file mode 100644
index 000000000000..cbde8b4bc2c9
--- /dev/null
+++ b/srcpkgs/python3-telegram/files/LICENSE
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) 2018 Alexander Akhmetov
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/srcpkgs/python3-telegram/patches/use-system-tdlib.patch b/srcpkgs/python3-telegram/patches/use-system-tdlib.patch
new file mode 100644
index 000000000000..f0fe73215288
--- /dev/null
+++ b/srcpkgs/python3-telegram/patches/use-system-tdlib.patch
@@ -0,0 +1,18 @@
+diff --git a/telegram/tdjson.py b/telegram/tdjson.py
+index 091145e..142654e 100644
+--- telegram/tdjson.py
++++ telegram/tdjson.py
+@@ -10,12 +10,7 @@ logger = logging.getLogger(__name__)
+ 
+ 
+ def _get_tdjson_lib_path() -> str:
+-    if platform.system().lower() == 'darwin':
+-        lib_name = 'darwin/libtdjson.dylib'
+-    else:
+-        lib_name = 'linux/libtdjson.so'
+-
+-    return pkg_resources.resource_filename('telegram', f'lib/{lib_name}')
++    return '/usr/lib/libtdjson.so.1.7.0'
+ 
+ 
+ class TDJson:
diff --git a/srcpkgs/python3-telegram/template b/srcpkgs/python3-telegram/template
new file mode 100644
index 000000000000..2f32da3822e2
--- /dev/null
+++ b/srcpkgs/python3-telegram/template
@@ -0,0 +1,23 @@
+# Template file for 'python3-telegram'
+pkgname=python3-telegram
+version=0.14.0
+revision=1
+wrksrc=python-telegram-${version}
+build_style=python3-module
+hostmakedepends="python3-setuptools"
+depends="libtd"
+short_desc="Python library for building Telegram clients"
+maintainer="Maxim Karasev <begs@disroot.org>"
+license="MIT"
+homepage="https://github.com/alexander-akhmetov/python-telegram"
+distfiles="${PYPI_SITE}/p/python-telegram/python-telegram-${version}.tar.gz"
+checksum=d3b08469ed06f6599ac4acfe89c697f3c99b55dec476c475c237f6decf238376
+make_check=no
+
+do_configure() {
+	rm -r telegram/lib
+}
+
+post_install() {
+	vlicense ${FILESDIR}/LICENSE
+}

From b9388f005016e5b7685f534ce6c65bb6fbbddec2 Mon Sep 17 00:00:00 2001
From: Maxim Karasev <begs@disroot.org>
Date: Mon, 26 Apr 2021 18:32:44 +0300
Subject: [PATCH 2/2] New package: telegram-tg-0.15.0

---
 srcpkgs/telegram-tg/template | 15 +++++++++++++++
 1 file changed, 15 insertions(+)
 create mode 100644 srcpkgs/telegram-tg/template

diff --git a/srcpkgs/telegram-tg/template b/srcpkgs/telegram-tg/template
new file mode 100644
index 000000000000..5a1004cc9b8b
--- /dev/null
+++ b/srcpkgs/telegram-tg/template
@@ -0,0 +1,15 @@
+# Template file for 'telegram-tg'
+pkgname=telegram-tg
+version=0.15.0
+revision=1
+wrksrc=tg-${version}
+build_style=python3-module
+hostmakedepends="python3-setuptools"
+depends="python3-telegram"
+short_desc="Terminal Telegram client"
+maintainer="Maxim Karasev <begs@disroot.org>"
+license="Unlicense"
+homepage="https://github.com/paul-nameless/tg"
+distfiles="${PYPI_SITE}/t/tg/tg-${version}.tar.gz"
+checksum=062fc7e68376213f85a41457d82694c59dc55bd9027ef25816cd6167735ef42c
+make_check=no

^ permalink raw reply	[flat|nested] 24+ messages in thread

* Re: New package: telegram-tg-0.15.0
  2021-04-23 18:27 [PR PATCH] New package: telegram-tg-0.12.0 begss
                   ` (2 preceding siblings ...)
  2021-04-26 14:34 ` [PR PATCH] [Updated] " begss
@ 2021-04-26 18:36 ` FollieHiyuki
  2021-04-26 18:39 ` FollieHiyuki
                   ` (18 subsequent siblings)
  22 siblings, 0 replies; 24+ messages in thread
From: FollieHiyuki @ 2021-04-26 18:36 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 278 bytes --]

New comment by FollieHiyuki on void-packages repository

https://github.com/void-linux/void-packages/pull/30458#issuecomment-827059254

Comment:
You can pull the distfile for `python3-telegram` from Github, so that we don't need to vendor the LICENSE file.
And 0.16.0 came out

^ permalink raw reply	[flat|nested] 24+ messages in thread

* Re: New package: telegram-tg-0.15.0
  2021-04-23 18:27 [PR PATCH] New package: telegram-tg-0.12.0 begss
                   ` (3 preceding siblings ...)
  2021-04-26 18:36 ` New package: telegram-tg-0.15.0 FollieHiyuki
@ 2021-04-26 18:39 ` FollieHiyuki
  2021-04-26 19:53 ` [PR REVIEW] " Piraty
                   ` (17 subsequent siblings)
  22 siblings, 0 replies; 24+ messages in thread
From: FollieHiyuki @ 2021-04-26 18:39 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 463 bytes --]

New comment by FollieHiyuki on void-packages repository

https://github.com/void-linux/void-packages/pull/30458#issuecomment-827059254

Comment:
You can pull the distfile for `python3-telegram` from Github, so that we don't need to vendor the LICENSE file. And it builds fine without explicitly disable check, so we don't need `make_check=no` there.

0.16.0 for `tg` came out. You can add a comment that there is no test to run before the `make_check=no` line.

^ permalink raw reply	[flat|nested] 24+ messages in thread

* Re: [PR REVIEW] New package: telegram-tg-0.15.0
  2021-04-23 18:27 [PR PATCH] New package: telegram-tg-0.12.0 begss
                   ` (4 preceding siblings ...)
  2021-04-26 18:39 ` FollieHiyuki
@ 2021-04-26 19:53 ` Piraty
  2021-04-26 19:53 ` Piraty
                   ` (16 subsequent siblings)
  22 siblings, 0 replies; 24+ messages in thread
From: Piraty @ 2021-04-26 19:53 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 236 bytes --]

New review comment by Piraty on void-packages repository

https://github.com/void-linux/void-packages/pull/30458#discussion_r620602516

Comment:
if it's feasable, please use source tarball from github and don't vendor the license here.

^ permalink raw reply	[flat|nested] 24+ messages in thread

* Re: [PR REVIEW] New package: telegram-tg-0.15.0
  2021-04-23 18:27 [PR PATCH] New package: telegram-tg-0.12.0 begss
                   ` (5 preceding siblings ...)
  2021-04-26 19:53 ` [PR REVIEW] " Piraty
@ 2021-04-26 19:53 ` Piraty
  2021-04-27 14:47 ` [PR PATCH] [Updated] " begss
                   ` (15 subsequent siblings)
  22 siblings, 0 replies; 24+ messages in thread
From: Piraty @ 2021-04-26 19:53 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 168 bytes --]

New review comment by Piraty on void-packages repository

https://github.com/void-linux/void-packages/pull/30458#discussion_r620602793

Comment:
make that post_extract

^ permalink raw reply	[flat|nested] 24+ messages in thread

* Re: [PR PATCH] [Updated] New package: telegram-tg-0.15.0
  2021-04-23 18:27 [PR PATCH] New package: telegram-tg-0.12.0 begss
                   ` (6 preceding siblings ...)
  2021-04-26 19:53 ` Piraty
@ 2021-04-27 14:47 ` begss
  2021-04-27 14:56 ` [PR PATCH] [Updated] New package: telegram-tg-0.16.0 begss
                   ` (14 subsequent siblings)
  22 siblings, 0 replies; 24+ messages in thread
From: begss @ 2021-04-27 14:47 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1598 bytes --]

There is an updated pull request by begss against master on the void-packages repository

https://github.com/begss/void-packages telegram-tg
https://github.com/void-linux/void-packages/pull/30458

New package: telegram-tg-0.15.0
<!-- Mark items with [x] where applicable -->

#### General
- [x] This is a new package and it conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements)

#### Have the results of the proposed changes been tested?
- [x] I use the packages affected by the proposed changes on a regular basis and confirm this PR works for me
- [ ] I generally don't use the affected packages but briefly tested this PR

<!--
If GitHub CI cannot be used to validate the build result (for example, if the
build is likely to take several hours), make sure to
[skip CI](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration).
When skipping CI, uncomment and fill out the following section.
Note: for builds that are likely to complete in less than 2 hours, it is not
acceptable to skip CI.
-->
<!-- 
#### Does it build and run successfully? 
(Please choose at least one native build and, if supported, at least one cross build. More are better.)
- [ ] I built this PR locally for my native architecture, (ARCH-LIBC)
- [ ] I built this PR locally for these architectures (if supported. mark crossbuilds):
  - [ ] aarch64-musl
  - [ ] armv7l
  - [ ] armv6l-musl
-->


A patch file from https://github.com/void-linux/void-packages/pull/30458.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-telegram-tg-30458.patch --]
[-- Type: text/x-diff, Size: 3317 bytes --]

From ee115d6d16b316ec6933dde56599a3e669a28926 Mon Sep 17 00:00:00 2001
From: Maxim Karasev <begs@disroot.org>
Date: Tue, 27 Apr 2021 17:45:31 +0300
Subject: [PATCH 1/2] New package: python3-telegram-0.14.0

---
 .../patches/use-system-tdlib.patch            | 18 +++++++++++++++
 srcpkgs/python3-telegram/template             | 23 +++++++++++++++++++
 2 files changed, 41 insertions(+)
 create mode 100644 srcpkgs/python3-telegram/patches/use-system-tdlib.patch
 create mode 100644 srcpkgs/python3-telegram/template

diff --git a/srcpkgs/python3-telegram/patches/use-system-tdlib.patch b/srcpkgs/python3-telegram/patches/use-system-tdlib.patch
new file mode 100644
index 000000000000..f0fe73215288
--- /dev/null
+++ b/srcpkgs/python3-telegram/patches/use-system-tdlib.patch
@@ -0,0 +1,18 @@
+diff --git a/telegram/tdjson.py b/telegram/tdjson.py
+index 091145e..142654e 100644
+--- telegram/tdjson.py
++++ telegram/tdjson.py
+@@ -10,12 +10,7 @@ logger = logging.getLogger(__name__)
+ 
+ 
+ def _get_tdjson_lib_path() -> str:
+-    if platform.system().lower() == 'darwin':
+-        lib_name = 'darwin/libtdjson.dylib'
+-    else:
+-        lib_name = 'linux/libtdjson.so'
+-
+-    return pkg_resources.resource_filename('telegram', f'lib/{lib_name}')
++    return '/usr/lib/libtdjson.so.1.7.0'
+ 
+ 
+ class TDJson:
diff --git a/srcpkgs/python3-telegram/template b/srcpkgs/python3-telegram/template
new file mode 100644
index 000000000000..9e177cd0515c
--- /dev/null
+++ b/srcpkgs/python3-telegram/template
@@ -0,0 +1,23 @@
+# Template file for 'python3-telegram'
+pkgname=python3-telegram
+version=0.14.0
+revision=1
+wrksrc=python-telegram-${version}
+build_style=python3-module
+hostmakedepends="python3-setuptools"
+depends="libtd"
+short_desc="Python library for building Telegram clients"
+maintainer="Maxim Karasev <begs@disroot.org>"
+license="MIT"
+homepage="https://github.com/alexander-akhmetov/python-telegram"
+distfiles="${PYPI_SITE}/p/python-telegram/python-telegram-${version}.tar.gz"
+distfiles="https://github.com/alexander-akhmetov/python-telegram/archive/${version}.tar.gz"
+checksum=11b0a2387bae642eb7f134fe35b9ef67b8183aa961412bcdfa86ff404beed897
+
+post_extract() {
+	rm -r telegram/lib
+}
+
+post_install() {
+	vlicense LICENSE
+}

From 8b69f3dde58b71341b5821d6f53401cc4d54e881 Mon Sep 17 00:00:00 2001
From: Maxim Karasev <begs@disroot.org>
Date: Tue, 27 Apr 2021 17:46:05 +0300
Subject: [PATCH 2/2] New package: telegram-tg-0.16.0

---
 srcpkgs/telegram-tg/template | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)
 create mode 100644 srcpkgs/telegram-tg/template

diff --git a/srcpkgs/telegram-tg/template b/srcpkgs/telegram-tg/template
new file mode 100644
index 000000000000..de3c7e5da890
--- /dev/null
+++ b/srcpkgs/telegram-tg/template
@@ -0,0 +1,16 @@
+# Template file for 'telegram-tg'
+pkgname=telegram-tg
+version=0.16.0
+revision=1
+wrksrc=tg-${version}
+build_style=python3-module
+hostmakedepends="python3-setuptools"
+depends="python3-telegram"
+short_desc="Terminal Telegram client"
+maintainer="Maxim Karasev <begs@disroot.org>"
+license="Unlicense"
+homepage="https://github.com/paul-nameless/tg"
+distfiles="${PYPI_SITE}/t/tg/tg-${version}.tar.gz"
+checksum=dc5920f66980992543da534ae3b8cf802bba3266ebb233e3cf768ff3bfa9e29f
+# There are no tests to run
+make_check=no

^ permalink raw reply	[flat|nested] 24+ messages in thread

* Re: [PR PATCH] [Updated] New package: telegram-tg-0.16.0
  2021-04-23 18:27 [PR PATCH] New package: telegram-tg-0.12.0 begss
                   ` (7 preceding siblings ...)
  2021-04-27 14:47 ` [PR PATCH] [Updated] " begss
@ 2021-04-27 14:56 ` begss
  2021-04-27 14:59 ` begss
                   ` (13 subsequent siblings)
  22 siblings, 0 replies; 24+ messages in thread
From: begss @ 2021-04-27 14:56 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1598 bytes --]

There is an updated pull request by begss against master on the void-packages repository

https://github.com/begss/void-packages telegram-tg
https://github.com/void-linux/void-packages/pull/30458

New package: telegram-tg-0.16.0
<!-- Mark items with [x] where applicable -->

#### General
- [x] This is a new package and it conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements)

#### Have the results of the proposed changes been tested?
- [x] I use the packages affected by the proposed changes on a regular basis and confirm this PR works for me
- [ ] I generally don't use the affected packages but briefly tested this PR

<!--
If GitHub CI cannot be used to validate the build result (for example, if the
build is likely to take several hours), make sure to
[skip CI](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration).
When skipping CI, uncomment and fill out the following section.
Note: for builds that are likely to complete in less than 2 hours, it is not
acceptable to skip CI.
-->
<!-- 
#### Does it build and run successfully? 
(Please choose at least one native build and, if supported, at least one cross build. More are better.)
- [ ] I built this PR locally for my native architecture, (ARCH-LIBC)
- [ ] I built this PR locally for these architectures (if supported. mark crossbuilds):
  - [ ] aarch64-musl
  - [ ] armv7l
  - [ ] armv6l-musl
-->


A patch file from https://github.com/void-linux/void-packages/pull/30458.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-telegram-tg-30458.patch --]
[-- Type: text/x-diff, Size: 3241 bytes --]

From 930d2da0037e09b7d6582677b220738634ffe753 Mon Sep 17 00:00:00 2001
From: Maxim Karasev <begs@disroot.org>
Date: Tue, 27 Apr 2021 17:53:59 +0300
Subject: [PATCH 1/2] New package: python3-telegram-0.14.0"

---
 .../patches/use-system-tdlib.patch            | 18 +++++++++++++++
 srcpkgs/python3-telegram/template             | 22 +++++++++++++++++++
 2 files changed, 40 insertions(+)
 create mode 100644 srcpkgs/python3-telegram/patches/use-system-tdlib.patch
 create mode 100644 srcpkgs/python3-telegram/template

diff --git a/srcpkgs/python3-telegram/patches/use-system-tdlib.patch b/srcpkgs/python3-telegram/patches/use-system-tdlib.patch
new file mode 100644
index 000000000000..f0fe73215288
--- /dev/null
+++ b/srcpkgs/python3-telegram/patches/use-system-tdlib.patch
@@ -0,0 +1,18 @@
+diff --git a/telegram/tdjson.py b/telegram/tdjson.py
+index 091145e..142654e 100644
+--- telegram/tdjson.py
++++ telegram/tdjson.py
+@@ -10,12 +10,7 @@ logger = logging.getLogger(__name__)
+ 
+ 
+ def _get_tdjson_lib_path() -> str:
+-    if platform.system().lower() == 'darwin':
+-        lib_name = 'darwin/libtdjson.dylib'
+-    else:
+-        lib_name = 'linux/libtdjson.so'
+-
+-    return pkg_resources.resource_filename('telegram', f'lib/{lib_name}')
++    return '/usr/lib/libtdjson.so.1.7.0'
+ 
+ 
+ class TDJson:
diff --git a/srcpkgs/python3-telegram/template b/srcpkgs/python3-telegram/template
new file mode 100644
index 000000000000..81489b90add8
--- /dev/null
+++ b/srcpkgs/python3-telegram/template
@@ -0,0 +1,22 @@
+# Template file for 'python3-telegram'
+pkgname=python3-telegram
+version=0.14.0
+revision=1
+wrksrc=python-telegram-${version}
+build_style=python3-module
+hostmakedepends="python3-setuptools"
+depends="libtd"
+short_desc="Python library for building Telegram clients"
+maintainer="Maxim Karasev <begs@disroot.org>"
+license="MIT"
+homepage="https://github.com/alexander-akhmetov/python-telegram"
+distfiles="https://github.com/alexander-akhmetov/python-telegram/archive/${version}.tar.gz"
+checksum=11b0a2387bae642eb7f134fe35b9ef67b8183aa961412bcdfa86ff404beed897
+
+post_extract() {
+	rm -r telegram/lib
+}
+
+post_install() {
+	vlicense LICENSE
+}

From 705c6af05d180f6ad97af0d20e178c8b423a7732 Mon Sep 17 00:00:00 2001
From: Maxim Karasev <begs@disroot.org>
Date: Tue, 27 Apr 2021 17:54:35 +0300
Subject: [PATCH 2/2] New package: telegram-tg-0.16.0"

---
 srcpkgs/telegram-tg/template | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)
 create mode 100644 srcpkgs/telegram-tg/template

diff --git a/srcpkgs/telegram-tg/template b/srcpkgs/telegram-tg/template
new file mode 100644
index 000000000000..de3c7e5da890
--- /dev/null
+++ b/srcpkgs/telegram-tg/template
@@ -0,0 +1,16 @@
+# Template file for 'telegram-tg'
+pkgname=telegram-tg
+version=0.16.0
+revision=1
+wrksrc=tg-${version}
+build_style=python3-module
+hostmakedepends="python3-setuptools"
+depends="python3-telegram"
+short_desc="Terminal Telegram client"
+maintainer="Maxim Karasev <begs@disroot.org>"
+license="Unlicense"
+homepage="https://github.com/paul-nameless/tg"
+distfiles="${PYPI_SITE}/t/tg/tg-${version}.tar.gz"
+checksum=dc5920f66980992543da534ae3b8cf802bba3266ebb233e3cf768ff3bfa9e29f
+# There are no tests to run
+make_check=no

^ permalink raw reply	[flat|nested] 24+ messages in thread

* Re: [PR PATCH] [Updated] New package: telegram-tg-0.16.0
  2021-04-23 18:27 [PR PATCH] New package: telegram-tg-0.12.0 begss
                   ` (8 preceding siblings ...)
  2021-04-27 14:56 ` [PR PATCH] [Updated] New package: telegram-tg-0.16.0 begss
@ 2021-04-27 14:59 ` begss
  2021-04-27 20:07 ` begss
                   ` (12 subsequent siblings)
  22 siblings, 0 replies; 24+ messages in thread
From: begss @ 2021-04-27 14:59 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1598 bytes --]

There is an updated pull request by begss against master on the void-packages repository

https://github.com/begss/void-packages telegram-tg
https://github.com/void-linux/void-packages/pull/30458

New package: telegram-tg-0.16.0
<!-- Mark items with [x] where applicable -->

#### General
- [x] This is a new package and it conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements)

#### Have the results of the proposed changes been tested?
- [x] I use the packages affected by the proposed changes on a regular basis and confirm this PR works for me
- [ ] I generally don't use the affected packages but briefly tested this PR

<!--
If GitHub CI cannot be used to validate the build result (for example, if the
build is likely to take several hours), make sure to
[skip CI](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration).
When skipping CI, uncomment and fill out the following section.
Note: for builds that are likely to complete in less than 2 hours, it is not
acceptable to skip CI.
-->
<!-- 
#### Does it build and run successfully? 
(Please choose at least one native build and, if supported, at least one cross build. More are better.)
- [ ] I built this PR locally for my native architecture, (ARCH-LIBC)
- [ ] I built this PR locally for these architectures (if supported. mark crossbuilds):
  - [ ] aarch64-musl
  - [ ] armv7l
  - [ ] armv6l-musl
-->


A patch file from https://github.com/void-linux/void-packages/pull/30458.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-telegram-tg-30458.patch --]
[-- Type: text/x-diff, Size: 3239 bytes --]

From c936b70ab569a8e9a3256de84f8846fbb92356c7 Mon Sep 17 00:00:00 2001
From: Maxim Karasev <begs@disroot.org>
Date: Tue, 27 Apr 2021 17:57:14 +0300
Subject: [PATCH 1/2] New package: python3-telegram-0.14.0

---
 .../patches/use-system-tdlib.patch            | 18 +++++++++++++++
 srcpkgs/python3-telegram/template             | 22 +++++++++++++++++++
 2 files changed, 40 insertions(+)
 create mode 100644 srcpkgs/python3-telegram/patches/use-system-tdlib.patch
 create mode 100644 srcpkgs/python3-telegram/template

diff --git a/srcpkgs/python3-telegram/patches/use-system-tdlib.patch b/srcpkgs/python3-telegram/patches/use-system-tdlib.patch
new file mode 100644
index 000000000000..f0fe73215288
--- /dev/null
+++ b/srcpkgs/python3-telegram/patches/use-system-tdlib.patch
@@ -0,0 +1,18 @@
+diff --git a/telegram/tdjson.py b/telegram/tdjson.py
+index 091145e..142654e 100644
+--- telegram/tdjson.py
++++ telegram/tdjson.py
+@@ -10,12 +10,7 @@ logger = logging.getLogger(__name__)
+ 
+ 
+ def _get_tdjson_lib_path() -> str:
+-    if platform.system().lower() == 'darwin':
+-        lib_name = 'darwin/libtdjson.dylib'
+-    else:
+-        lib_name = 'linux/libtdjson.so'
+-
+-    return pkg_resources.resource_filename('telegram', f'lib/{lib_name}')
++    return '/usr/lib/libtdjson.so.1.7.0'
+ 
+ 
+ class TDJson:
diff --git a/srcpkgs/python3-telegram/template b/srcpkgs/python3-telegram/template
new file mode 100644
index 000000000000..81489b90add8
--- /dev/null
+++ b/srcpkgs/python3-telegram/template
@@ -0,0 +1,22 @@
+# Template file for 'python3-telegram'
+pkgname=python3-telegram
+version=0.14.0
+revision=1
+wrksrc=python-telegram-${version}
+build_style=python3-module
+hostmakedepends="python3-setuptools"
+depends="libtd"
+short_desc="Python library for building Telegram clients"
+maintainer="Maxim Karasev <begs@disroot.org>"
+license="MIT"
+homepage="https://github.com/alexander-akhmetov/python-telegram"
+distfiles="https://github.com/alexander-akhmetov/python-telegram/archive/${version}.tar.gz"
+checksum=11b0a2387bae642eb7f134fe35b9ef67b8183aa961412bcdfa86ff404beed897
+
+post_extract() {
+	rm -r telegram/lib
+}
+
+post_install() {
+	vlicense LICENSE
+}

From 24fa9d614cf9156f5b788ec1c464fb205acaf496 Mon Sep 17 00:00:00 2001
From: Maxim Karasev <begs@disroot.org>
Date: Tue, 27 Apr 2021 17:57:28 +0300
Subject: [PATCH 2/2] New package: telegram-tg-0.16.0

---
 srcpkgs/telegram-tg/template | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)
 create mode 100644 srcpkgs/telegram-tg/template

diff --git a/srcpkgs/telegram-tg/template b/srcpkgs/telegram-tg/template
new file mode 100644
index 000000000000..de3c7e5da890
--- /dev/null
+++ b/srcpkgs/telegram-tg/template
@@ -0,0 +1,16 @@
+# Template file for 'telegram-tg'
+pkgname=telegram-tg
+version=0.16.0
+revision=1
+wrksrc=tg-${version}
+build_style=python3-module
+hostmakedepends="python3-setuptools"
+depends="python3-telegram"
+short_desc="Terminal Telegram client"
+maintainer="Maxim Karasev <begs@disroot.org>"
+license="Unlicense"
+homepage="https://github.com/paul-nameless/tg"
+distfiles="${PYPI_SITE}/t/tg/tg-${version}.tar.gz"
+checksum=dc5920f66980992543da534ae3b8cf802bba3266ebb233e3cf768ff3bfa9e29f
+# There are no tests to run
+make_check=no

^ permalink raw reply	[flat|nested] 24+ messages in thread

* Re: [PR PATCH] [Updated] New package: telegram-tg-0.16.0
  2021-04-23 18:27 [PR PATCH] New package: telegram-tg-0.12.0 begss
                   ` (9 preceding siblings ...)
  2021-04-27 14:59 ` begss
@ 2021-04-27 20:07 ` begss
  2021-05-01 14:53 ` [PR REVIEW] New package: telegram-tg-0.17.0 Piraty
                   ` (11 subsequent siblings)
  22 siblings, 0 replies; 24+ messages in thread
From: begss @ 2021-04-27 20:07 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1598 bytes --]

There is an updated pull request by begss against master on the void-packages repository

https://github.com/begss/void-packages telegram-tg
https://github.com/void-linux/void-packages/pull/30458

New package: telegram-tg-0.16.0
<!-- Mark items with [x] where applicable -->

#### General
- [x] This is a new package and it conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements)

#### Have the results of the proposed changes been tested?
- [x] I use the packages affected by the proposed changes on a regular basis and confirm this PR works for me
- [ ] I generally don't use the affected packages but briefly tested this PR

<!--
If GitHub CI cannot be used to validate the build result (for example, if the
build is likely to take several hours), make sure to
[skip CI](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration).
When skipping CI, uncomment and fill out the following section.
Note: for builds that are likely to complete in less than 2 hours, it is not
acceptable to skip CI.
-->
<!-- 
#### Does it build and run successfully? 
(Please choose at least one native build and, if supported, at least one cross build. More are better.)
- [ ] I built this PR locally for my native architecture, (ARCH-LIBC)
- [ ] I built this PR locally for these architectures (if supported. mark crossbuilds):
  - [ ] aarch64-musl
  - [ ] armv7l
  - [ ] armv6l-musl
-->


A patch file from https://github.com/void-linux/void-packages/pull/30458.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-telegram-tg-30458.patch --]
[-- Type: text/x-diff, Size: 3239 bytes --]

From c936b70ab569a8e9a3256de84f8846fbb92356c7 Mon Sep 17 00:00:00 2001
From: Maxim Karasev <begs@disroot.org>
Date: Tue, 27 Apr 2021 17:57:14 +0300
Subject: [PATCH 1/2] New package: python3-telegram-0.14.0

---
 .../patches/use-system-tdlib.patch            | 18 +++++++++++++++
 srcpkgs/python3-telegram/template             | 22 +++++++++++++++++++
 2 files changed, 40 insertions(+)
 create mode 100644 srcpkgs/python3-telegram/patches/use-system-tdlib.patch
 create mode 100644 srcpkgs/python3-telegram/template

diff --git a/srcpkgs/python3-telegram/patches/use-system-tdlib.patch b/srcpkgs/python3-telegram/patches/use-system-tdlib.patch
new file mode 100644
index 000000000000..f0fe73215288
--- /dev/null
+++ b/srcpkgs/python3-telegram/patches/use-system-tdlib.patch
@@ -0,0 +1,18 @@
+diff --git a/telegram/tdjson.py b/telegram/tdjson.py
+index 091145e..142654e 100644
+--- telegram/tdjson.py
++++ telegram/tdjson.py
+@@ -10,12 +10,7 @@ logger = logging.getLogger(__name__)
+ 
+ 
+ def _get_tdjson_lib_path() -> str:
+-    if platform.system().lower() == 'darwin':
+-        lib_name = 'darwin/libtdjson.dylib'
+-    else:
+-        lib_name = 'linux/libtdjson.so'
+-
+-    return pkg_resources.resource_filename('telegram', f'lib/{lib_name}')
++    return '/usr/lib/libtdjson.so.1.7.0'
+ 
+ 
+ class TDJson:
diff --git a/srcpkgs/python3-telegram/template b/srcpkgs/python3-telegram/template
new file mode 100644
index 000000000000..81489b90add8
--- /dev/null
+++ b/srcpkgs/python3-telegram/template
@@ -0,0 +1,22 @@
+# Template file for 'python3-telegram'
+pkgname=python3-telegram
+version=0.14.0
+revision=1
+wrksrc=python-telegram-${version}
+build_style=python3-module
+hostmakedepends="python3-setuptools"
+depends="libtd"
+short_desc="Python library for building Telegram clients"
+maintainer="Maxim Karasev <begs@disroot.org>"
+license="MIT"
+homepage="https://github.com/alexander-akhmetov/python-telegram"
+distfiles="https://github.com/alexander-akhmetov/python-telegram/archive/${version}.tar.gz"
+checksum=11b0a2387bae642eb7f134fe35b9ef67b8183aa961412bcdfa86ff404beed897
+
+post_extract() {
+	rm -r telegram/lib
+}
+
+post_install() {
+	vlicense LICENSE
+}

From aa40b59a92dea7a94661761a3d962589becaec6b Mon Sep 17 00:00:00 2001
From: Maxim Karasev <begs@disroot.org>
Date: Tue, 27 Apr 2021 17:57:28 +0300
Subject: [PATCH 2/2] New package: telegram-tg-0.17.0

---
 srcpkgs/telegram-tg/template | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)
 create mode 100644 srcpkgs/telegram-tg/template

diff --git a/srcpkgs/telegram-tg/template b/srcpkgs/telegram-tg/template
new file mode 100644
index 000000000000..bbe1ced0d401
--- /dev/null
+++ b/srcpkgs/telegram-tg/template
@@ -0,0 +1,16 @@
+# Template file for 'telegram-tg'
+pkgname=telegram-tg
+version=0.17.0
+revision=1
+wrksrc=tg-${version}
+build_style=python3-module
+hostmakedepends="python3-setuptools"
+depends="python3-telegram"
+short_desc="Terminal Telegram client"
+maintainer="Maxim Karasev <begs@disroot.org>"
+license="Unlicense"
+homepage="https://github.com/paul-nameless/tg"
+distfiles="${PYPI_SITE}/t/tg/tg-${version}.tar.gz"
+checksum=dc5920f66980992543da534ae3b8cf802bba3266ebb233e3cf768ff3bfa9e29f
+# There are no tests to run
+make_check=no

^ permalink raw reply	[flat|nested] 24+ messages in thread

* Re: [PR REVIEW] New package: telegram-tg-0.17.0
  2021-04-23 18:27 [PR PATCH] New package: telegram-tg-0.12.0 begss
                   ` (10 preceding siblings ...)
  2021-04-27 20:07 ` begss
@ 2021-05-01 14:53 ` Piraty
  2021-05-02  8:10 ` [PR PATCH] [Updated] " begss
                   ` (10 subsequent siblings)
  22 siblings, 0 replies; 24+ messages in thread
From: Piraty @ 2021-05-01 14:53 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 217 bytes --]

New review comment by Piraty on void-packages repository

https://github.com/void-linux/void-packages/pull/30458#discussion_r624521007

Comment:
any chance you can make that find the correct file dynamically instead?

^ permalink raw reply	[flat|nested] 24+ messages in thread

* Re: [PR PATCH] [Updated] New package: telegram-tg-0.17.0
  2021-04-23 18:27 [PR PATCH] New package: telegram-tg-0.12.0 begss
                   ` (11 preceding siblings ...)
  2021-05-01 14:53 ` [PR REVIEW] New package: telegram-tg-0.17.0 Piraty
@ 2021-05-02  8:10 ` begss
  2021-05-04  8:54 ` begss
                   ` (9 subsequent siblings)
  22 siblings, 0 replies; 24+ messages in thread
From: begss @ 2021-05-02  8:10 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1598 bytes --]

There is an updated pull request by begss against master on the void-packages repository

https://github.com/begss/void-packages telegram-tg
https://github.com/void-linux/void-packages/pull/30458

New package: telegram-tg-0.17.0
<!-- Mark items with [x] where applicable -->

#### General
- [x] This is a new package and it conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements)

#### Have the results of the proposed changes been tested?
- [x] I use the packages affected by the proposed changes on a regular basis and confirm this PR works for me
- [ ] I generally don't use the affected packages but briefly tested this PR

<!--
If GitHub CI cannot be used to validate the build result (for example, if the
build is likely to take several hours), make sure to
[skip CI](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration).
When skipping CI, uncomment and fill out the following section.
Note: for builds that are likely to complete in less than 2 hours, it is not
acceptable to skip CI.
-->
<!-- 
#### Does it build and run successfully? 
(Please choose at least one native build and, if supported, at least one cross build. More are better.)
- [ ] I built this PR locally for my native architecture, (ARCH-LIBC)
- [ ] I built this PR locally for these architectures (if supported. mark crossbuilds):
  - [ ] aarch64-musl
  - [ ] armv7l
  - [ ] armv6l-musl
-->


A patch file from https://github.com/void-linux/void-packages/pull/30458.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-telegram-tg-30458.patch --]
[-- Type: text/x-diff, Size: 3566 bytes --]

From bb58b323c49fa517b8a094220252d7e171362ff4 Mon Sep 17 00:00:00 2001
From: Maxim Karasev <begs@disroot.org>
Date: Sun, 2 May 2021 11:11:10 +0300
Subject: [PATCH 1/2] New package: python3-telegram-0.14.0

---
 .../patches/use-system-tdlib.patch            | 25 +++++++++++++++++++
 srcpkgs/python3-telegram/template             | 22 ++++++++++++++++
 2 files changed, 47 insertions(+)
 create mode 100644 srcpkgs/python3-telegram/patches/use-system-tdlib.patch
 create mode 100644 srcpkgs/python3-telegram/template

diff --git a/srcpkgs/python3-telegram/patches/use-system-tdlib.patch b/srcpkgs/python3-telegram/patches/use-system-tdlib.patch
new file mode 100644
index 000000000000..0a82a0760678
--- /dev/null
+++ b/srcpkgs/python3-telegram/patches/use-system-tdlib.patch
@@ -0,0 +1,25 @@
+diff --git a/telegram/tdjson.py b/telegram/tdjson.py
+index 091145e..8d3ad21 100644
+--- telegram/tdjson.py
++++ telegram/tdjson.py
+@@ -9,19 +9,10 @@ import pkg_resources
+ logger = logging.getLogger(__name__)
+ 
+ 
+-def _get_tdjson_lib_path() -> str:
+-    if platform.system().lower() == 'darwin':
+-        lib_name = 'darwin/libtdjson.dylib'
+-    else:
+-        lib_name = 'linux/libtdjson.so'
+-
+-    return pkg_resources.resource_filename('telegram', f'lib/{lib_name}')
+-
+-
+ class TDJson:
+     def __init__(self, library_path: Optional[str] = None, verbosity: int = 2) -> None:
+         if library_path is None:
+-            library_path = _get_tdjson_lib_path()
++            library_path = 'libtdjson.so.1.7.0'
+         logger.info('Using shared library "%s"', library_path)
+ 
+         self._build_client(library_path, verbosity)
diff --git a/srcpkgs/python3-telegram/template b/srcpkgs/python3-telegram/template
new file mode 100644
index 000000000000..81489b90add8
--- /dev/null
+++ b/srcpkgs/python3-telegram/template
@@ -0,0 +1,22 @@
+# Template file for 'python3-telegram'
+pkgname=python3-telegram
+version=0.14.0
+revision=1
+wrksrc=python-telegram-${version}
+build_style=python3-module
+hostmakedepends="python3-setuptools"
+depends="libtd"
+short_desc="Python library for building Telegram clients"
+maintainer="Maxim Karasev <begs@disroot.org>"
+license="MIT"
+homepage="https://github.com/alexander-akhmetov/python-telegram"
+distfiles="https://github.com/alexander-akhmetov/python-telegram/archive/${version}.tar.gz"
+checksum=11b0a2387bae642eb7f134fe35b9ef67b8183aa961412bcdfa86ff404beed897
+
+post_extract() {
+	rm -r telegram/lib
+}
+
+post_install() {
+	vlicense LICENSE
+}

From b4e96ea8626b2bc82194c08ca72bc0bbcf8682b1 Mon Sep 17 00:00:00 2001
From: Maxim Karasev <begs@disroot.org>
Date: Sun, 2 May 2021 11:11:31 +0300
Subject: [PATCH 2/2] New package: telegram-tg-0.17.0

---
 srcpkgs/telegram-tg/template | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)
 create mode 100644 srcpkgs/telegram-tg/template

diff --git a/srcpkgs/telegram-tg/template b/srcpkgs/telegram-tg/template
new file mode 100644
index 000000000000..9d2c800d7a8f
--- /dev/null
+++ b/srcpkgs/telegram-tg/template
@@ -0,0 +1,16 @@
+# Template file for 'telegram-tg'
+pkgname=telegram-tg
+version=0.17.0
+revision=1
+wrksrc=tg-${version}
+build_style=python3-module
+hostmakedepends="python3-setuptools"
+depends="python3-telegram"
+short_desc="Terminal Telegram client"
+maintainer="Maxim Karasev <begs@disroot.org>"
+license="Unlicense"
+homepage="https://github.com/paul-nameless/tg"
+distfiles="${PYPI_SITE}/t/tg/tg-${version}.tar.gz"
+checksum=aab22b1e40a28710b6e3dbe4f3bba67ff02e36d612d8388f9400e4c34feab221
+# There are no tests to run
+make_check=no

^ permalink raw reply	[flat|nested] 24+ messages in thread

* Re: [PR PATCH] [Updated] New package: telegram-tg-0.17.0
  2021-04-23 18:27 [PR PATCH] New package: telegram-tg-0.12.0 begss
                   ` (12 preceding siblings ...)
  2021-05-02  8:10 ` [PR PATCH] [Updated] " begss
@ 2021-05-04  8:54 ` begss
  2021-05-10  9:56 ` [PR REVIEW] " Piraty
                   ` (8 subsequent siblings)
  22 siblings, 0 replies; 24+ messages in thread
From: begss @ 2021-05-04  8:54 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1598 bytes --]

There is an updated pull request by begss against master on the void-packages repository

https://github.com/begss/void-packages telegram-tg
https://github.com/void-linux/void-packages/pull/30458

New package: telegram-tg-0.17.0
<!-- Mark items with [x] where applicable -->

#### General
- [x] This is a new package and it conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements)

#### Have the results of the proposed changes been tested?
- [x] I use the packages affected by the proposed changes on a regular basis and confirm this PR works for me
- [ ] I generally don't use the affected packages but briefly tested this PR

<!--
If GitHub CI cannot be used to validate the build result (for example, if the
build is likely to take several hours), make sure to
[skip CI](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration).
When skipping CI, uncomment and fill out the following section.
Note: for builds that are likely to complete in less than 2 hours, it is not
acceptable to skip CI.
-->
<!-- 
#### Does it build and run successfully? 
(Please choose at least one native build and, if supported, at least one cross build. More are better.)
- [ ] I built this PR locally for my native architecture, (ARCH-LIBC)
- [ ] I built this PR locally for these architectures (if supported. mark crossbuilds):
  - [ ] aarch64-musl
  - [ ] armv7l
  - [ ] armv6l-musl
-->


A patch file from https://github.com/void-linux/void-packages/pull/30458.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-telegram-tg-30458.patch --]
[-- Type: text/x-diff, Size: 3547 bytes --]

From b3637ef402e8911cfc294103c953bc2357d23456 Mon Sep 17 00:00:00 2001
From: Maxim Karasev <begs@disroot.org>
Date: Tue, 4 May 2021 11:55:28 +0300
Subject: [PATCH 1/2] New package: python3-telegram-0.14.0

---
 .../patches/use-system-tdlib.patch            | 25 +++++++++++++++++++
 srcpkgs/python3-telegram/template             | 21 ++++++++++++++++
 2 files changed, 46 insertions(+)
 create mode 100644 srcpkgs/python3-telegram/patches/use-system-tdlib.patch
 create mode 100644 srcpkgs/python3-telegram/template

diff --git a/srcpkgs/python3-telegram/patches/use-system-tdlib.patch b/srcpkgs/python3-telegram/patches/use-system-tdlib.patch
new file mode 100644
index 000000000000..0a82a0760678
--- /dev/null
+++ b/srcpkgs/python3-telegram/patches/use-system-tdlib.patch
@@ -0,0 +1,25 @@
+diff --git a/telegram/tdjson.py b/telegram/tdjson.py
+index 091145e..8d3ad21 100644
+--- telegram/tdjson.py
++++ telegram/tdjson.py
+@@ -9,19 +9,10 @@ import pkg_resources
+ logger = logging.getLogger(__name__)
+ 
+ 
+-def _get_tdjson_lib_path() -> str:
+-    if platform.system().lower() == 'darwin':
+-        lib_name = 'darwin/libtdjson.dylib'
+-    else:
+-        lib_name = 'linux/libtdjson.so'
+-
+-    return pkg_resources.resource_filename('telegram', f'lib/{lib_name}')
+-
+-
+ class TDJson:
+     def __init__(self, library_path: Optional[str] = None, verbosity: int = 2) -> None:
+         if library_path is None:
+-            library_path = _get_tdjson_lib_path()
++            library_path = 'libtdjson.so.1.7.0'
+         logger.info('Using shared library "%s"', library_path)
+ 
+         self._build_client(library_path, verbosity)
diff --git a/srcpkgs/python3-telegram/template b/srcpkgs/python3-telegram/template
new file mode 100644
index 000000000000..1885ebb2bdca
--- /dev/null
+++ b/srcpkgs/python3-telegram/template
@@ -0,0 +1,21 @@
+# Template file for 'python3-telegram'
+pkgname=python3-telegram
+version=0.14.0
+revision=1
+wrksrc=python-telegram-${version}
+build_style=python3-module
+depends="libtd python3-setuptools"
+short_desc="Python library for building Telegram clients"
+maintainer="Maxim Karasev <begs@disroot.org>"
+license="MIT"
+homepage="https://github.com/alexander-akhmetov/python-telegram"
+distfiles="https://github.com/alexander-akhmetov/python-telegram/archive/${version}.tar.gz"
+checksum=11b0a2387bae642eb7f134fe35b9ef67b8183aa961412bcdfa86ff404beed897
+
+post_extract() {
+	rm -r telegram/lib
+}
+
+post_install() {
+	vlicense LICENSE
+}

From 69b77b6e876047ad5e72cc776e898ebd6a3cd0a4 Mon Sep 17 00:00:00 2001
From: Maxim Karasev <begs@disroot.org>
Date: Tue, 4 May 2021 11:55:50 +0300
Subject: [PATCH 2/2] New package: telegram-tg-0.17.0

---
 srcpkgs/telegram-tg/template | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)
 create mode 100644 srcpkgs/telegram-tg/template

diff --git a/srcpkgs/telegram-tg/template b/srcpkgs/telegram-tg/template
new file mode 100644
index 000000000000..9d2c800d7a8f
--- /dev/null
+++ b/srcpkgs/telegram-tg/template
@@ -0,0 +1,16 @@
+# Template file for 'telegram-tg'
+pkgname=telegram-tg
+version=0.17.0
+revision=1
+wrksrc=tg-${version}
+build_style=python3-module
+hostmakedepends="python3-setuptools"
+depends="python3-telegram"
+short_desc="Terminal Telegram client"
+maintainer="Maxim Karasev <begs@disroot.org>"
+license="Unlicense"
+homepage="https://github.com/paul-nameless/tg"
+distfiles="${PYPI_SITE}/t/tg/tg-${version}.tar.gz"
+checksum=aab22b1e40a28710b6e3dbe4f3bba67ff02e36d612d8388f9400e4c34feab221
+# There are no tests to run
+make_check=no

^ permalink raw reply	[flat|nested] 24+ messages in thread

* Re: [PR REVIEW] New package: telegram-tg-0.17.0
  2021-04-23 18:27 [PR PATCH] New package: telegram-tg-0.12.0 begss
                   ` (13 preceding siblings ...)
  2021-05-04  8:54 ` begss
@ 2021-05-10  9:56 ` Piraty
  2021-05-10 15:06 ` [PR PATCH] [Updated] " begss
                   ` (7 subsequent siblings)
  22 siblings, 0 replies; 24+ messages in thread
From: Piraty @ 2021-05-10  9:56 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 289 bytes --]

New review comment by Piraty on void-packages repository

https://github.com/void-linux/void-packages/pull/30458#discussion_r629226432

Comment:
as asked earlier: can you make this forward-compatible? else this patch needs adaptation should the lib's version change and it might be missed

^ permalink raw reply	[flat|nested] 24+ messages in thread

* Re: [PR PATCH] [Updated] New package: telegram-tg-0.17.0
  2021-04-23 18:27 [PR PATCH] New package: telegram-tg-0.12.0 begss
                   ` (14 preceding siblings ...)
  2021-05-10  9:56 ` [PR REVIEW] " Piraty
@ 2021-05-10 15:06 ` begss
  2021-05-10 19:38 ` Piraty
                   ` (6 subsequent siblings)
  22 siblings, 0 replies; 24+ messages in thread
From: begss @ 2021-05-10 15:06 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1598 bytes --]

There is an updated pull request by begss against master on the void-packages repository

https://github.com/begss/void-packages telegram-tg
https://github.com/void-linux/void-packages/pull/30458

New package: telegram-tg-0.17.0
<!-- Mark items with [x] where applicable -->

#### General
- [x] This is a new package and it conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements)

#### Have the results of the proposed changes been tested?
- [x] I use the packages affected by the proposed changes on a regular basis and confirm this PR works for me
- [ ] I generally don't use the affected packages but briefly tested this PR

<!--
If GitHub CI cannot be used to validate the build result (for example, if the
build is likely to take several hours), make sure to
[skip CI](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration).
When skipping CI, uncomment and fill out the following section.
Note: for builds that are likely to complete in less than 2 hours, it is not
acceptable to skip CI.
-->
<!-- 
#### Does it build and run successfully? 
(Please choose at least one native build and, if supported, at least one cross build. More are better.)
- [ ] I built this PR locally for my native architecture, (ARCH-LIBC)
- [ ] I built this PR locally for these architectures (if supported. mark crossbuilds):
  - [ ] aarch64-musl
  - [ ] armv7l
  - [ ] armv6l-musl
-->


A patch file from https://github.com/void-linux/void-packages/pull/30458.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-telegram-tg-30458.patch --]
[-- Type: text/x-diff, Size: 3441 bytes --]

From 1b4f52392c996b0b9bb1980fae0e8660df24dd78 Mon Sep 17 00:00:00 2001
From: Maxim Karasev <begs@disroot.org>
Date: Mon, 10 May 2021 18:01:57 +0300
Subject: [PATCH 1/2] New package: python3-telegram-0.14.0

---
 .../patches/use-system-tdlib.patch            | 25 +++++++++++++++++++
 srcpkgs/python3-telegram/template             | 21 ++++++++++++++++
 2 files changed, 46 insertions(+)
 create mode 100644 srcpkgs/python3-telegram/patches/use-system-tdlib.patch
 create mode 100644 srcpkgs/python3-telegram/template

diff --git a/srcpkgs/python3-telegram/patches/use-system-tdlib.patch b/srcpkgs/python3-telegram/patches/use-system-tdlib.patch
new file mode 100644
index 000000000000..a410156f8302
--- /dev/null
+++ b/srcpkgs/python3-telegram/patches/use-system-tdlib.patch
@@ -0,0 +1,25 @@
+--- telegram/tdjson.py	2021-05-10 17:17:18.518726156 +0300
++++ telegram/tdjson.py	2021-05-10 17:21:37.050712081 +0300
+@@ -1,6 +1,7 @@
+ import json
+ import logging
+ import platform
++import os
+ from ctypes import CDLL, CFUNCTYPE, c_int, c_char_p, c_double, c_void_p, c_longlong
+ from typing import Any, Dict, Optional, Union
+ 
+@@ -10,12 +11,8 @@
+ 
+ 
+ def _get_tdjson_lib_path() -> str:
+-    if platform.system().lower() == 'darwin':
+-        lib_name = 'darwin/libtdjson.dylib'
+-    else:
+-        lib_name = 'linux/libtdjson.so'
+-
+-    return pkg_resources.resource_filename('telegram', f'lib/{lib_name}')
++    path = os.popen("find /usr/lib/libtdjson.so* | sed '1!d'").read().strip()
++    return path
+ 
+ 
+ class TDJson:
diff --git a/srcpkgs/python3-telegram/template b/srcpkgs/python3-telegram/template
new file mode 100644
index 000000000000..1885ebb2bdca
--- /dev/null
+++ b/srcpkgs/python3-telegram/template
@@ -0,0 +1,21 @@
+# Template file for 'python3-telegram'
+pkgname=python3-telegram
+version=0.14.0
+revision=1
+wrksrc=python-telegram-${version}
+build_style=python3-module
+depends="libtd python3-setuptools"
+short_desc="Python library for building Telegram clients"
+maintainer="Maxim Karasev <begs@disroot.org>"
+license="MIT"
+homepage="https://github.com/alexander-akhmetov/python-telegram"
+distfiles="https://github.com/alexander-akhmetov/python-telegram/archive/${version}.tar.gz"
+checksum=11b0a2387bae642eb7f134fe35b9ef67b8183aa961412bcdfa86ff404beed897
+
+post_extract() {
+	rm -r telegram/lib
+}
+
+post_install() {
+	vlicense LICENSE
+}

From 8b52d8ae8dc0979cfa7fdb570885c66247f18457 Mon Sep 17 00:00:00 2001
From: Maxim Karasev <begs@disroot.org>
Date: Mon, 10 May 2021 18:05:03 +0300
Subject: [PATCH 2/2] New package: telegram-tg-0.17.0

---
 srcpkgs/telegram-tg/template | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)
 create mode 100644 srcpkgs/telegram-tg/template

diff --git a/srcpkgs/telegram-tg/template b/srcpkgs/telegram-tg/template
new file mode 100644
index 000000000000..9d2c800d7a8f
--- /dev/null
+++ b/srcpkgs/telegram-tg/template
@@ -0,0 +1,16 @@
+# Template file for 'telegram-tg'
+pkgname=telegram-tg
+version=0.17.0
+revision=1
+wrksrc=tg-${version}
+build_style=python3-module
+hostmakedepends="python3-setuptools"
+depends="python3-telegram"
+short_desc="Terminal Telegram client"
+maintainer="Maxim Karasev <begs@disroot.org>"
+license="Unlicense"
+homepage="https://github.com/paul-nameless/tg"
+distfiles="${PYPI_SITE}/t/tg/tg-${version}.tar.gz"
+checksum=aab22b1e40a28710b6e3dbe4f3bba67ff02e36d612d8388f9400e4c34feab221
+# There are no tests to run
+make_check=no

^ permalink raw reply	[flat|nested] 24+ messages in thread

* Re: New package: telegram-tg-0.17.0
  2021-04-23 18:27 [PR PATCH] New package: telegram-tg-0.12.0 begss
                   ` (15 preceding siblings ...)
  2021-05-10 15:06 ` [PR PATCH] [Updated] " begss
@ 2021-05-10 19:38 ` Piraty
  2021-05-11 16:56 ` begss
                   ` (5 subsequent siblings)
  22 siblings, 0 replies; 24+ messages in thread
From: Piraty @ 2021-05-10 19:38 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 223 bytes --]

New comment by Piraty on void-packages repository

https://github.com/void-linux/void-packages/pull/30458#issuecomment-837213701

Comment:
I will merge this, but i ask you to bring library detection to upstream's attention

^ permalink raw reply	[flat|nested] 24+ messages in thread

* Re: New package: telegram-tg-0.17.0
  2021-04-23 18:27 [PR PATCH] New package: telegram-tg-0.12.0 begss
                   ` (16 preceding siblings ...)
  2021-05-10 19:38 ` Piraty
@ 2021-05-11 16:56 ` begss
  2021-05-11 17:01 ` begss
                   ` (4 subsequent siblings)
  22 siblings, 0 replies; 24+ messages in thread
From: begss @ 2021-05-11 16:56 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 294 bytes --]

New comment by begss on void-packages repository

https://github.com/void-linux/void-packages/pull/30458#issuecomment-838827252

Comment:
It's already a known issue and there is a better fix, I should have look at issues first.
https://github.com/alexander-akhmetov/python-telegram/issues/119

^ permalink raw reply	[flat|nested] 24+ messages in thread

* Re: New package: telegram-tg-0.17.0
  2021-04-23 18:27 [PR PATCH] New package: telegram-tg-0.12.0 begss
                   ` (17 preceding siblings ...)
  2021-05-11 16:56 ` begss
@ 2021-05-11 17:01 ` begss
  2021-05-11 17:01 ` begss
                   ` (3 subsequent siblings)
  22 siblings, 0 replies; 24+ messages in thread
From: begss @ 2021-05-11 17:01 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 381 bytes --]

New comment by begss on void-packages repository

https://github.com/void-linux/void-packages/pull/30458#issuecomment-838827252

Comment:
It's already a known issue and there is a better fix, I should have look at issues first.
https://github.com/alexander-akhmetov/python-telegram/issues/119
Looks like upstream won't change library detection behavior in the foreseeable future

^ permalink raw reply	[flat|nested] 24+ messages in thread

* Re: New package: telegram-tg-0.17.0
  2021-04-23 18:27 [PR PATCH] New package: telegram-tg-0.12.0 begss
                   ` (18 preceding siblings ...)
  2021-05-11 17:01 ` begss
@ 2021-05-11 17:01 ` begss
  2021-05-11 17:11 ` [PR PATCH] [Updated] " begss
                   ` (2 subsequent siblings)
  22 siblings, 0 replies; 24+ messages in thread
From: begss @ 2021-05-11 17:01 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 383 bytes --]

New comment by begss on void-packages repository

https://github.com/void-linux/void-packages/pull/30458#issuecomment-838827252

Comment:
It's already a known issue and there is a better fix, I should have looked at issues first.
https://github.com/alexander-akhmetov/python-telegram/issues/119
Looks like upstream won't change library detection behavior in the foreseeable future

^ permalink raw reply	[flat|nested] 24+ messages in thread

* Re: [PR PATCH] [Updated] New package: telegram-tg-0.17.0
  2021-04-23 18:27 [PR PATCH] New package: telegram-tg-0.12.0 begss
                   ` (19 preceding siblings ...)
  2021-05-11 17:01 ` begss
@ 2021-05-11 17:11 ` begss
  2021-05-16 16:11 ` [PR REVIEW] " Piraty
  2021-05-16 19:32 ` [PR PATCH] [Updated] " begss
  22 siblings, 0 replies; 24+ messages in thread
From: begss @ 2021-05-11 17:11 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1598 bytes --]

There is an updated pull request by begss against master on the void-packages repository

https://github.com/begss/void-packages telegram-tg
https://github.com/void-linux/void-packages/pull/30458

New package: telegram-tg-0.17.0
<!-- Mark items with [x] where applicable -->

#### General
- [x] This is a new package and it conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements)

#### Have the results of the proposed changes been tested?
- [x] I use the packages affected by the proposed changes on a regular basis and confirm this PR works for me
- [ ] I generally don't use the affected packages but briefly tested this PR

<!--
If GitHub CI cannot be used to validate the build result (for example, if the
build is likely to take several hours), make sure to
[skip CI](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration).
When skipping CI, uncomment and fill out the following section.
Note: for builds that are likely to complete in less than 2 hours, it is not
acceptable to skip CI.
-->
<!-- 
#### Does it build and run successfully? 
(Please choose at least one native build and, if supported, at least one cross build. More are better.)
- [ ] I built this PR locally for my native architecture, (ARCH-LIBC)
- [ ] I built this PR locally for these architectures (if supported. mark crossbuilds):
  - [ ] aarch64-musl
  - [ ] armv7l
  - [ ] armv6l-musl
-->


A patch file from https://github.com/void-linux/void-packages/pull/30458.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-telegram-tg-30458.patch --]
[-- Type: text/x-diff, Size: 4353 bytes --]

From 71975fa6126bc6ee0c78c8ff54989d6372661975 Mon Sep 17 00:00:00 2001
From: Maxim Karasev <begs@disroot.org>
Date: Tue, 11 May 2021 20:09:54 +0300
Subject: [PATCH 1/2] New package: python3-telegram-0.14.0

---
 .../remove-precompiled-libraries.patch        | 15 +++++++++++
 .../patches/use-system-tdlib.patch            | 27 +++++++++++++++++++
 srcpkgs/python3-telegram/template             | 22 +++++++++++++++
 3 files changed, 64 insertions(+)
 create mode 100644 srcpkgs/python3-telegram/patches/remove-precompiled-libraries.patch
 create mode 100644 srcpkgs/python3-telegram/patches/use-system-tdlib.patch
 create mode 100644 srcpkgs/python3-telegram/template

diff --git a/srcpkgs/python3-telegram/patches/remove-precompiled-libraries.patch b/srcpkgs/python3-telegram/patches/remove-precompiled-libraries.patch
new file mode 100644
index 000000000000..714faee8ca87
--- /dev/null
+++ b/srcpkgs/python3-telegram/patches/remove-precompiled-libraries.patch
@@ -0,0 +1,15 @@
+diff --git a/setup.py b/setup.py
+index a1ac7b0..aecc107 100644
+--- setup.py
++++ setup.py
+@@ -25,10 +25,4 @@ setup(
+     packages=[
+         'telegram',
+     ],
+-    package_data={
+-        'telegram': [
+-            'lib/darwin/*',
+-            'lib/linux/*',
+-        ],
+-    },
+ )
diff --git a/srcpkgs/python3-telegram/patches/use-system-tdlib.patch b/srcpkgs/python3-telegram/patches/use-system-tdlib.patch
new file mode 100644
index 000000000000..294f8fe798e4
--- /dev/null
+++ b/srcpkgs/python3-telegram/patches/use-system-tdlib.patch
@@ -0,0 +1,27 @@
+diff --git a/telegram/tdjson.py b/telegram/tdjson.py
+index 091145e..21c0361 100644
+--- telegram/tdjson.py
++++ telegram/tdjson.py
+@@ -2,6 +2,7 @@ import json
+ import logging
+ import platform
+ from ctypes import CDLL, CFUNCTYPE, c_int, c_char_p, c_double, c_void_p, c_longlong
++from ctypes.util import find_library
+ from typing import Any, Dict, Optional, Union
+ 
+ import pkg_resources
+@@ -10,13 +11,7 @@ logger = logging.getLogger(__name__)
+ 
+ 
+ def _get_tdjson_lib_path() -> str:
+-    if platform.system().lower() == 'darwin':
+-        lib_name = 'darwin/libtdjson.dylib'
+-    else:
+-        lib_name = 'linux/libtdjson.so'
+-
+-    return pkg_resources.resource_filename('telegram', f'lib/{lib_name}')
+-
++    return find_library("tdjson")
+ 
+ class TDJson:
+     def __init__(self, library_path: Optional[str] = None, verbosity: int = 2) -> None:
diff --git a/srcpkgs/python3-telegram/template b/srcpkgs/python3-telegram/template
new file mode 100644
index 000000000000..13cc66ab33c7
--- /dev/null
+++ b/srcpkgs/python3-telegram/template
@@ -0,0 +1,22 @@
+# Template file for 'python3-telegram'
+pkgname=python3-telegram
+version=0.14.0
+revision=1
+wrksrc=python-telegram-${version}
+build_style=python3-module
+hostmakedepends="python3"
+depends="libtd python3-setuptools"
+short_desc="Python library for building Telegram clients"
+maintainer="Maxim Karasev <begs@disroot.org>"
+license="MIT"
+homepage="https://github.com/alexander-akhmetov/python-telegram"
+distfiles="https://github.com/alexander-akhmetov/python-telegram/archive/${version}.tar.gz"
+checksum=11b0a2387bae642eb7f134fe35b9ef67b8183aa961412bcdfa86ff404beed897
+
+post_extract() {
+	rm -r telegram/lib
+}
+
+post_install() {
+	vlicense LICENSE
+}

From 030661a845a13dec42a363041bc2a6a9efd53a67 Mon Sep 17 00:00:00 2001
From: Maxim Karasev <begs@disroot.org>
Date: Tue, 11 May 2021 20:10:12 +0300
Subject: [PATCH 2/2] New package: telegram-tg-0.17.0

---
 srcpkgs/telegram-tg/template | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)
 create mode 100644 srcpkgs/telegram-tg/template

diff --git a/srcpkgs/telegram-tg/template b/srcpkgs/telegram-tg/template
new file mode 100644
index 000000000000..9d2c800d7a8f
--- /dev/null
+++ b/srcpkgs/telegram-tg/template
@@ -0,0 +1,16 @@
+# Template file for 'telegram-tg'
+pkgname=telegram-tg
+version=0.17.0
+revision=1
+wrksrc=tg-${version}
+build_style=python3-module
+hostmakedepends="python3-setuptools"
+depends="python3-telegram"
+short_desc="Terminal Telegram client"
+maintainer="Maxim Karasev <begs@disroot.org>"
+license="Unlicense"
+homepage="https://github.com/paul-nameless/tg"
+distfiles="${PYPI_SITE}/t/tg/tg-${version}.tar.gz"
+checksum=aab22b1e40a28710b6e3dbe4f3bba67ff02e36d612d8388f9400e4c34feab221
+# There are no tests to run
+make_check=no

^ permalink raw reply	[flat|nested] 24+ messages in thread

* Re: [PR REVIEW] New package: telegram-tg-0.17.0
  2021-04-23 18:27 [PR PATCH] New package: telegram-tg-0.12.0 begss
                   ` (20 preceding siblings ...)
  2021-05-11 17:11 ` [PR PATCH] [Updated] " begss
@ 2021-05-16 16:11 ` Piraty
  2021-05-16 19:32 ` [PR PATCH] [Updated] " begss
  22 siblings, 0 replies; 24+ messages in thread
From: Piraty @ 2021-05-16 16:11 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 202 bytes --]

New review comment by Piraty on void-packages repository

https://github.com/void-linux/void-packages/pull/30458#discussion_r633108456

Comment:
leave a comment where you got this from + upstream issue

^ permalink raw reply	[flat|nested] 24+ messages in thread

* Re: [PR PATCH] [Updated] New package: telegram-tg-0.17.0
  2021-04-23 18:27 [PR PATCH] New package: telegram-tg-0.12.0 begss
                   ` (21 preceding siblings ...)
  2021-05-16 16:11 ` [PR REVIEW] " Piraty
@ 2021-05-16 19:32 ` begss
  22 siblings, 0 replies; 24+ messages in thread
From: begss @ 2021-05-16 19:32 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1598 bytes --]

There is an updated pull request by begss against master on the void-packages repository

https://github.com/begss/void-packages telegram-tg
https://github.com/void-linux/void-packages/pull/30458

New package: telegram-tg-0.17.0
<!-- Mark items with [x] where applicable -->

#### General
- [x] This is a new package and it conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements)

#### Have the results of the proposed changes been tested?
- [x] I use the packages affected by the proposed changes on a regular basis and confirm this PR works for me
- [ ] I generally don't use the affected packages but briefly tested this PR

<!--
If GitHub CI cannot be used to validate the build result (for example, if the
build is likely to take several hours), make sure to
[skip CI](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration).
When skipping CI, uncomment and fill out the following section.
Note: for builds that are likely to complete in less than 2 hours, it is not
acceptable to skip CI.
-->
<!-- 
#### Does it build and run successfully? 
(Please choose at least one native build and, if supported, at least one cross build. More are better.)
- [ ] I built this PR locally for my native architecture, (ARCH-LIBC)
- [ ] I built this PR locally for these architectures (if supported. mark crossbuilds):
  - [ ] aarch64-musl
  - [ ] armv7l
  - [ ] armv6l-musl
-->


A patch file from https://github.com/void-linux/void-packages/pull/30458.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-telegram-tg-30458.patch --]
[-- Type: text/x-diff, Size: 4726 bytes --]

From c3f1ba1f6157721402ee0269730a5ff0eb9d0944 Mon Sep 17 00:00:00 2001
From: Maxim Karasev <begs@disroot.org>
Date: Sun, 16 May 2021 22:34:02 +0300
Subject: [PATCH 1/2] New package: python3-telegram-0.14.0

---
 .../remove-precompiled-libraries.patch        | 17 +++++++++++
 .../patches/use-system-tdlib.patch            | 29 +++++++++++++++++++
 srcpkgs/python3-telegram/template             | 22 ++++++++++++++
 3 files changed, 68 insertions(+)
 create mode 100644 srcpkgs/python3-telegram/patches/remove-precompiled-libraries.patch
 create mode 100644 srcpkgs/python3-telegram/patches/use-system-tdlib.patch
 create mode 100644 srcpkgs/python3-telegram/template

diff --git a/srcpkgs/python3-telegram/patches/remove-precompiled-libraries.patch b/srcpkgs/python3-telegram/patches/remove-precompiled-libraries.patch
new file mode 100644
index 000000000000..4a84da651a6b
--- /dev/null
+++ b/srcpkgs/python3-telegram/patches/remove-precompiled-libraries.patch
@@ -0,0 +1,17 @@
+# Patch from https://aur.archlinux.org/cgit/aur.git/plain/0002-Remove-binarys.diff?h=python-telegram
+# Upstream issue: https://github.com/alexander-akhmetov/python-telegram/issues/119
+diff --git a/setup.py b/setup.py
+index a1ac7b0..aecc107 100644
+--- setup.py
++++ setup.py
+@@ -25,10 +25,4 @@ setup(
+     packages=[
+         'telegram',
+     ],
+-    package_data={
+-        'telegram': [
+-            'lib/darwin/*',
+-            'lib/linux/*',
+-        ],
+-    },
+ )
diff --git a/srcpkgs/python3-telegram/patches/use-system-tdlib.patch b/srcpkgs/python3-telegram/patches/use-system-tdlib.patch
new file mode 100644
index 000000000000..298db83a5c13
--- /dev/null
+++ b/srcpkgs/python3-telegram/patches/use-system-tdlib.patch
@@ -0,0 +1,29 @@
+# Patch from https://aur.archlinux.org/cgit/aur.git/plain/0001-Use-system-tdlib.diff?h=python-telegram
+# Upstream issue: https://github.com/alexander-akhmetov/python-telegram/issues/119
+diff --git a/telegram/tdjson.py b/telegram/tdjson.py
+index 091145e..21c0361 100644
+--- telegram/tdjson.py
++++ telegram/tdjson.py
+@@ -2,6 +2,7 @@ import json
+ import logging
+ import platform
+ from ctypes import CDLL, CFUNCTYPE, c_int, c_char_p, c_double, c_void_p, c_longlong
++from ctypes.util import find_library
+ from typing import Any, Dict, Optional, Union
+ 
+ import pkg_resources
+@@ -10,13 +11,7 @@ logger = logging.getLogger(__name__)
+ 
+ 
+ def _get_tdjson_lib_path() -> str:
+-    if platform.system().lower() == 'darwin':
+-        lib_name = 'darwin/libtdjson.dylib'
+-    else:
+-        lib_name = 'linux/libtdjson.so'
+-
+-    return pkg_resources.resource_filename('telegram', f'lib/{lib_name}')
+-
++    return find_library("tdjson")
+ 
+ class TDJson:
+     def __init__(self, library_path: Optional[str] = None, verbosity: int = 2) -> None:
diff --git a/srcpkgs/python3-telegram/template b/srcpkgs/python3-telegram/template
new file mode 100644
index 000000000000..13cc66ab33c7
--- /dev/null
+++ b/srcpkgs/python3-telegram/template
@@ -0,0 +1,22 @@
+# Template file for 'python3-telegram'
+pkgname=python3-telegram
+version=0.14.0
+revision=1
+wrksrc=python-telegram-${version}
+build_style=python3-module
+hostmakedepends="python3"
+depends="libtd python3-setuptools"
+short_desc="Python library for building Telegram clients"
+maintainer="Maxim Karasev <begs@disroot.org>"
+license="MIT"
+homepage="https://github.com/alexander-akhmetov/python-telegram"
+distfiles="https://github.com/alexander-akhmetov/python-telegram/archive/${version}.tar.gz"
+checksum=11b0a2387bae642eb7f134fe35b9ef67b8183aa961412bcdfa86ff404beed897
+
+post_extract() {
+	rm -r telegram/lib
+}
+
+post_install() {
+	vlicense LICENSE
+}

From 715b66369dc08d96e48cb7d0cc0d25a2442a3e01 Mon Sep 17 00:00:00 2001
From: Maxim Karasev <begs@disroot.org>
Date: Sun, 16 May 2021 22:34:24 +0300
Subject: [PATCH 2/2] New package: telegram-tg-0.17.0

---
 srcpkgs/telegram-tg/template | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)
 create mode 100644 srcpkgs/telegram-tg/template

diff --git a/srcpkgs/telegram-tg/template b/srcpkgs/telegram-tg/template
new file mode 100644
index 000000000000..9d2c800d7a8f
--- /dev/null
+++ b/srcpkgs/telegram-tg/template
@@ -0,0 +1,16 @@
+# Template file for 'telegram-tg'
+pkgname=telegram-tg
+version=0.17.0
+revision=1
+wrksrc=tg-${version}
+build_style=python3-module
+hostmakedepends="python3-setuptools"
+depends="python3-telegram"
+short_desc="Terminal Telegram client"
+maintainer="Maxim Karasev <begs@disroot.org>"
+license="Unlicense"
+homepage="https://github.com/paul-nameless/tg"
+distfiles="${PYPI_SITE}/t/tg/tg-${version}.tar.gz"
+checksum=aab22b1e40a28710b6e3dbe4f3bba67ff02e36d612d8388f9400e4c34feab221
+# There are no tests to run
+make_check=no

^ permalink raw reply	[flat|nested] 24+ messages in thread

end of thread, other threads:[~2021-05-16 19:32 UTC | newest]

Thread overview: 24+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-23 18:27 [PR PATCH] New package: telegram-tg-0.12.0 begss
2021-04-25 18:30 ` Piraty
2021-04-25 21:42 ` FollieHiyuki
2021-04-26 14:34 ` [PR PATCH] [Updated] " begss
2021-04-26 18:36 ` New package: telegram-tg-0.15.0 FollieHiyuki
2021-04-26 18:39 ` FollieHiyuki
2021-04-26 19:53 ` [PR REVIEW] " Piraty
2021-04-26 19:53 ` Piraty
2021-04-27 14:47 ` [PR PATCH] [Updated] " begss
2021-04-27 14:56 ` [PR PATCH] [Updated] New package: telegram-tg-0.16.0 begss
2021-04-27 14:59 ` begss
2021-04-27 20:07 ` begss
2021-05-01 14:53 ` [PR REVIEW] New package: telegram-tg-0.17.0 Piraty
2021-05-02  8:10 ` [PR PATCH] [Updated] " begss
2021-05-04  8:54 ` begss
2021-05-10  9:56 ` [PR REVIEW] " Piraty
2021-05-10 15:06 ` [PR PATCH] [Updated] " begss
2021-05-10 19:38 ` Piraty
2021-05-11 16:56 ` begss
2021-05-11 17:01 ` begss
2021-05-11 17:01 ` begss
2021-05-11 17:11 ` [PR PATCH] [Updated] " begss
2021-05-16 16:11 ` [PR REVIEW] " Piraty
2021-05-16 19:32 ` [PR PATCH] [Updated] " begss

Github messages for voidlinux

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://inbox.vuxu.org/voidlinux-github

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V1 voidlinux-github voidlinux-github/ http://inbox.vuxu.org/voidlinux-github \
		voidlinux-github@inbox.vuxu.org
	public-inbox-index voidlinux-github

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://inbox.vuxu.org/vuxu.github.voidlinux


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git