Github messages for voidlinux
 help / color / mirror / Atom feed
From: begss <begss@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] New package: telegram-tg-0.16.0
Date: Tue, 27 Apr 2021 16:56:07 +0200	[thread overview]
Message-ID: <20210427145607.TJ5ql_ROuwsO2UzyQ0F6uipoOnytSYoMq0fM6h0J58c@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-30458@inbox.vuxu.org>

[-- 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

  parent reply	other threads:[~2021-04-27 14:56 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 ` begss [this message]
2021-04-27 14:59 ` [PR PATCH] [Updated] New package: telegram-tg-0.16.0 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
2021-05-17 12:07 ` [PR PATCH] [Merged]: " Piraty

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210427145607.TJ5ql_ROuwsO2UzyQ0F6uipoOnytSYoMq0fM6h0J58c@z \
    --to=begss@users.noreply.github.com \
    --cc=ml@inbox.vuxu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).