summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 68fe3dc8ade8076ac8bfa8c36ca2f59296dc7fcd (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
# Maintainer: Kimiblock Moe

pkgname=python-cryptg
pkgver=0.5
pkgrel=3
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' 'git')
license=('CC0-1.0')
arch=('any')
source=("git+https://github.com/cher-nov/cryptg.git#tag=v${pkgver}")

sha256sums=('c23d0055ea730b372de29cc6ff1aaa7a23d165e2b20908e1c27cb65b9aa29f97')

build() {
    cd "${srcdir}/cryptg"
    export PYO3_USE_ABI3_FORWARD_COMPATIBILITY=1
    python -m build --wheel --no-isolation
}

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