summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: af59361355171cdb7f8de8e87ae6bb28ae40b9d6 (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
41
42
# Maintainer: Takanashi Rikka <ayasa0520@gmail.com>

_pkgname="gbulb"
pkgname="python-gbulb-git"
pkgver=0.6.5.r50.g244c510
pkgrel=1
pkgdesc="Implementation of asyncio using GLib"
arch=("any")
url="https://github.com/beeware/gbulb"
license=("Apache")
makedepends=("python-setuptools")
depends=("python-gobject")
optdepends=("gtk3: Gtk application integration")
provides=("$_pkgname")
conflicts=(
    "$_pkgname"
    "python-gbulb"
)
checkdepends=("python-tox")
source=("$_pkgname::git+$url.git")
sha256sums=("SKIP")

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


build() {
    cd "${_pkgname}"
    python -m build
}

check() {
    cd "${_pkgname}"
    tox -e py
}

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