summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 4a4f17ed2d10ad7bbb5ab6f17aca758dc707dfe0 (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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
# Maintainer: taotieren <admin@taotieren.com>

pkgbase=yoctools
pkgname=python-yoctools
pkgver=2.1.11
pkgrel=3
epoch=
pkgdesc="(Yun on Chip) 以极简开发为理念,以 CPU 架构、芯片平台、操作系统、云服务和开发套件为基础,助力开发者从芯片到云的全链路高效设计,是面向 IoT 领域的全栈技术平台"
# arch=('any')
arch=($CARCH)
url="https://pypi.org/project/yoctools/"
license=('BSD-2-Clause')
groups=()
depends=(
    sh
    scons
    python
    python-httplib2
    python-smmap
    python-pyserial
    python-requests-toolbelt
    python-ruamel-yaml
    python-threadpoolctl
    python-xlsxwriter
    python-ndg-httpsclient
    python-urllib3
    #AUR
    python-configparser
)
makedepends=(
    python-build
    python-installer
    python-setuptools
    python-wheel
)
checkdepends=()
optdepends=()
provides=(${pkgname} python-git python-gitdb)
conflicts=(${pkgname} python-git python-gitdb)
replaces=()
backup=()
options=(!debug)
install=
changelog=
source=("${pkgbase}-${pkgver}.tar.gz::https://files.pythonhosted.org/packages/source/${pkgbase::1}/$pkgbase/$pkgbase-$pkgver.tar.gz")
noextract=()
sha256sums=('d95b5d1f85b139baac73755bbbf366b710e27ba00ed797f00ee89ce20c3c5878')
#validpgpkeys=()

# prepare() {
#     cd "${srcdir}/${pkgbase}-${pkgver}"
#     sed '/^git/d' \
#         -i yoctools.egg-info/SOURCES.txt \
#         yoctools.egg-info/top_level.txt
#
#     rm -rf git*
# }

build() {
    cd "${srcdir}/${pkgbase}-${pkgver}"
    python -m build --wheel --no-isolation
}

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