blob: c5b15d4b337e2f8934d52dab2949b84e4311dbcc (
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
36
37
38
39
40
|
# Maintainer: Alessandro Zanatta <alessandro.zanatta.lav@gmail.com>
pkgname=python-discord-py
_pkgname=discord.py
pkgver=2.3.2
pkgrel=1
pkgdesc="A modern, easy to use, feature-rich, and async ready API wrapper for Discord written in Python"
arch=('x86_64')
url="https://github.com/Rapptz/discord.py"
license=('MIT')
depends=(
python
python-aiohttp
)
optdepends=(
python-pynacl
)
makedepends=(
python-setuptools
python-wheel
python-build
python-installer
)
source=(
"https://files.pythonhosted.org/packages/source/${_pkgname::1}/${_pkgname}/${_pkgname}-${pkgver}.tar.gz"
)
options=(!strip) # strip isn't useful for python files and takes forever
sha256sums=('4560f70f2eddba7e83370ecebd237ac09fbb4980dc66507482b0c0e5b8f76b9c')
build() {
cd discord.py-"$pkgver" || exit 1
python -m build --wheel --no-isolation
}
package() {
cd discord.py-"$pkgver" || exit 1
python -m installer --destdir="$pkgdir" dist/*.whl
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
|