summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 3b4818d980d2ce115a38b5f116edfd95f7f0e28e (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
# Maintainer: MithicSpirit <rpc01234 at gmail dot com>

_pkgname=pincer
pkgname=python-$_pkgname-git
pkgver=latest
pkgrel=3
pkgdesc="The snappy asynchronous discord api wrapper API wrapper written with aiohttp."
arch=(any)
url="https://github.com/Pincer-org/Pincer" # https://pincer.dev/ (under construction)
license=('MIT')
depends=('python>=3.8' 'python-aiohttp')
optdepends=('python-pillow: image support'
            'python-orjson: speed'
            'python-brotli: speed'
            'python-aiodns: speed'
            'python-cchardet: speed')
makedepends=('git' 'python-poetry' 'python-build' 'python-installer')
source=("${_pkgname}::git+https://github.com/Pincer-org/Pincer.git")
sha256sums=('SKIP')

pkgver() {
	cd "$_pkgname"
	git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
	cd "$_pkgname"
	python -m build --wheel --no-isolation
}

package() {
	cd "$_pkgname"
	python -m installer --destdir="$pkgdir" dist/*.whl
}