blob: 7c1a181c0ed50e327d939066189a5dc3728e221c (
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
|
# Maintainer: xiretza <xiretza+aur@gmail.com>
pkgname=python-discord
_pkgname=discord.py
pkgver=1.0.1
pkgrel=1
pkgdesc="An API wrapper for Discord written in Python"
arch=(any)
url="https://github.com/Rapptz/discord.py"
license=('MIT')
depends=('python' 'python-websockets' 'python-aiohttp')
optdepends=('python-pynacl: Voice support'
'libffi: Voice support')
source=("${_pkgname}-${pkgver}.tar.gz::https://github.com/Rapptz/discord.py/archive/v${pkgver}.tar.gz")
sha512sums=('312a442c4c3cd5471c37cf9985de2abf42feac80929e67bd80b4d2716f9f6947e77623e1dd9a39381dae9f8ef93108f763b3fec4b3a45af4af2d05082fba4da2')
build() {
cd "${srcdir}/${_pkgname}-${pkgver}"
python setup.py build
}
package() {
cd "${srcdir}/${_pkgname}-${pkgver}"
install -Dm644 -t "${pkgdir}/usr/share/licenses/${pkgname}/" LICENSE
python setup.py install --root="$pkgdir/" --optimize=1 --skip-build
}
|