summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 4a7a5d4498c147abd4302040c9e50d15bf2cb486 (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: Matt Quintanilla <matt @ matt quintanilla . xyz>
pkgname=python-disnake-git
pkgver=4684.9383d15ff
pkgrel=1
pkgdesc="An API wrapper for Discord written in Python. "
arch=('any')
url="https://github.com/DisnakeDev/disnake"
license=('MIT')
depends=('python' 'python-aiohttp')
optdepends=('python-pynacl: Voice support'
            'libffi: Voice support')
makedepends=('git' 'python-wheel' 'python-build' 'python-installer')
source=("disnake-git::git+https://github.com/DisnakeDev/disnake")
provides=('python-disnake')
conflicts=('python-disnake')
md5sums=('SKIP')

pkgver() {
  cd disnake-git
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
  pwd
  cd "$srcdir/disnake-git"
python -m build
}

package() {
  cd "$srcdir/disnake-git"
  install -Dm644 -t "${pkgdir}/usr/share/licenses/${pkgname}/" LICENSE
  python -m installer --destdir="$pkgdir" dist/*.whl
}
md5sums=('SKIP')