summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 34715e5288eb9b6e536f2f25bf372235df6ae290 (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
# Maintainer: Ben Westover <kwestover.kw@gmail.com>
pkgname=python-py-cord-git
pkgver=v1.7.0.r1745.gdad90219
pkgrel=1
pkgdesc="Pycord is a maintained fork of discord.py, a python wrapper for the Discord API - git version for development"
arch=(any)
url="https://github.com/Pycord-Development/pycord"
license=('MIT')
depends=('python' 'python-aiohttp')
makedepends=('python-setuptools' 'git')
optdepends=('python-pynacl: Voice support'
            'libffi: Voice support')
conflicts=('python-discord' 'python-py-cord')
provides=('python-discord' 'python-py-cord' 'python-pycord')
source=("pycord::git+https://github.com/Pycord-Development/pycord.git")
sha256sums=('SKIP')

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

build() {
	cd pycord
	python setup.py build
}

package() {
	cd pycord
	install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
	python setup.py install --root="$pkgdir/" --optimize=1 --skip-build
}