blob: 77091ba382612f0e86e015459fbcf12dcf495812 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
# Maintainer:
# Contributor: j.r <j.r@jugendhacker.de>
## links
# https://telegram-text.alinsky.tech/
# https://github.com/SKY-ALIN/telegram-text
## basic info
_module="telegram-text"
_pkgname="python-$_module"
pkgname="$_pkgname"
pkgver=0.2.0
pkgrel=2
pkgdesc="Python markup module for Telegram messenger"
url="https://github.com/SKY-ALIN/telegram-text"
license=('MIT')
arch=('any')
depends=(
'python'
)
makedepends=(
'python-build'
'python-installer'
'python-wheel'
'python-poetry'
)
checkdepends=(
'python-pytest'
)
_pkgsrc="$_module-$pkgver"
_pkgext="tar.gz"
source=("$_pkgsrc.$_pkgext"::"$url/archive/refs/tags/v$pkgver.$_pkgext")
sha256sums=('1af4e5487858dcc2576946524193f97e0638335c0b307ef3f2adfc6bebde0192')
build() {
cd "$_pkgsrc"
python -m build --wheel --no-isolation
}
check() {
cd "$_pkgsrc"
pytest tests/
}
package() {
cd "$_pkgsrc"
python -m installer --destdir="$pkgdir" dist/*.whl
install -Dm644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname/"
}
|