blob: 0f72e6e0201cc4680fda158057be92de4efba583 (
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
|
# Maintainer: lpt <aur AT lucapetrucci DOT net>
pkgname=tgeraser
pkgver=1.3.3
pkgrel=1
pkgdesc="Delete all your messages from chat/channel/dialog on Telegram"
arch=('any')
url="https://github.com/en9inerd/tgeraser"
license=('MIT')
depends=(
'python'
'python-docopt'
'python-pyaes'
'python-pyasn1'
'python-rsa'
'python-telethon'
)
makedepends=('python-build' 'python-installer' 'python-wheel')
source=(
"https://files.pythonhosted.org/packages/source/${pkgname::1}/$pkgname/$pkgname-$pkgver.tar.gz"
)
sha256sums=(
'3f297397a2c222c4959f3a61e131f24bb568f9109a8a2fc62676e11bb1ca8f49'
)
build () {
cd "$pkgname-$pkgver"
python -m build --wheel --no-isolation
}
package() {
cd "$pkgname-$pkgver"
python -m installer --destdir="$pkgdir" dist/*.whl
install -Dm 644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
install -Dm 644 README.md "$pkgdir/usr/share/doc/$pkgname/README.md"
}
|