summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: e9debb9106293ccb53b7612b217d375b386d158d (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
# Maintainer: matt quintanilla <matt @ matt quintanilla . xyz>
pkgname=python-disnake
pkgver=2.9.2
_tarname=disnake-$pkgver
pkgrel=1
pkgdesc="An API wrapper for Discord written in Python."
arch=(any)
url="https://github.com/DisnakeDev/disnake"
license=(MIT)
depends=('python-aiohttp>=3.7.4' 'python-aiohttp<4')
makedepends=(python-setuptools python-{build,installer,wheel})
optdepends=(
	'python-pynacl>=1.3.0: voice support'
	'libffi: voice support'
	'python-orjson>=3.5.4: speed support'
	'python-aiodns: speed support'
	'python-brotli: speed support'
	'python-cchardet=2.1.7: speed support'
	'python<3.10: speed support'
)

source=("$_tarname.tar.gz::$url/archive/v$pkgver.tar.gz")
build() {
	cd $_tarname
	python -m build -wn
}

package() {
	cd $_tarname
	install -Dm644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname/"
	python -m installer -d "$pkgdir" dist/*.whl
}
sha256sums=('036c910684f2cf6ee30ae623c38c71f887597cc842615aaf5a98528887d29744')