aboutsummaryrefslogtreecommitdiffstats
path: root/testing/flit/APKBUILD
blob: 237dbec4b1881924fce2222b9cdd393204414d9e (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
# Contributor: Leo <thinkabit.ukim@gmail.com>
# Maintainer: Leo <thinkabit.ukim@gmail.com>
pkgname=flit
pkgver=2.2.0
pkgrel=0
pkgdesc="Simple packaging tool for simple Python packages"
options="!check"
url="https://flit.readthedocs.io"
arch="noarch"
license="BSD-3-Clause"
depends="
	python3
	py3-docutils
	py3-pytoml
	py3-requests
	"
makedepends="unzip"
_wheel_cli="flit-$pkgver-py3-none-any.whl"
_wheel_core="flit_core-$pkgver-py2.py3-none-any.whl"
source="https://files.pythonhosted.org/packages/py3/f/flit/$_wheel_cli
	https://files.pythonhosted.org/packages/py2.py3/f/flit_core/$_wheel_core
	install-wheel-scripts.py
	"
builddir="$srcdir"

package() {
	local site="$pkgdir"/usr/lib/"$(readlink /usr/bin/python3)"/site-packages
	mkdir -p "$site"
	unzip "$_wheel_core" -d "$site"
	unzip "$_wheel_cli" -d "$site"
	"$srcdir"/install-wheel-scripts.py --prefix="$pkgdir"/usr "$_wheel_cli"
	chmod 644 "$site"/*.dist-info/*
}

sha512sums="b279acc61c83ccfa9424a855fcf3e8e7ef8badd2ac9d90e0344eb88d6de254ddfcc22871e850a1567e494206da7f61fe593acd5bdd5b8eaf4932c3d2f7caf35f  flit-2.2.0-py3-none-any.whl
acfa0d405f41d676ccd691c0290cf9e0144a488e38a7d317378c7817a6d29b18542b231c0f282fe54e96c374a89e6f0ea0969d1cf3002e6787f2731258513d08  flit_core-2.2.0-py2.py3-none-any.whl
96a9eeebec7b362dec9e19309386a28df3243b5b8d84643de8d043a12ae174ca7b111b67a0a335ed0fa1069690b990ef66de5670326e225251ad3bbfef9e3b1e  install-wheel-scripts.py"