summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 49eb70468e161b595eb4692564361ef5f2b46ddb (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
# Maintainer: n0n1m
# Maintainer: mbutsk

_name=aiomax
pkgname=python-$_name-git

pkgver=2.7.1.r0.gff6ab54

pkgrel=1
pkgdesc="The asynchronous library for Max (newest git version)"
arch=('any')
url="https://github.com/dpnspn/aiomax"
license=('MIT')
depends=(python3 python-aiohttp)
makedepends=(python-build python-installer python-wheel python-setuptools)
source=("git+$url.git")
sha256sums=('SKIP')
conflicts=(python-aiomax)

pkgver() {
  cd "$_name"
  git describe --long --tags --abbrev=7 | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

prepare() {
	git -C "${srcdir}/${_name}" clean -dfx
}

build() {
    cd $_name
    python -m build --wheel --no-isolation
}

package() {
    cd $_name
    python -m installer --destdir="$pkgdir" dist/*.whl
}