summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 264abcc5af23b49f1e8d2453db8eb0328d4e6a9e (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
# Maintainer: Marcus Hoffmann <bubu@bubu1.eu>

pkgname=python-cryptg
pkgver=0.4
pkgrel=1
pkgdesc="Cryptographic utilities for Telegram, designed to use with Telethon."
url="https://github.com/cher-nov/cryptg"
depends=('python')
makedepends=('python-setuptools' 'python-setuptools-rust' 'python-build' 'python-installer' 'python-wheel')
license=('CC0')
arch=('any')
source=("https://github.com/cher-nov/cryptg/archive/v${pkgver}.tar.gz")

sha256sums=('923a2318ab2e591952794d9b2125eb3f4fa4b5b9462fb2305ee9de8b092c49b3')

build() {
    cd "${srcdir}/cryptg-${pkgver}"
    python -m build --wheel --no-isolation
}

package() {
    cd "${srcdir}/cryptg-${pkgver}"
    install -Dm644 LICENSE.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE.txt"
    python -m installer --destdir="${pkgdir}" dist/*.whl
}