aboutsummaryrefslogtreecommitdiffstats
path: root/unmaintained/flit/APKBUILD
blob: 667a4cf3958945977d3a1db01ac7a17bae1d2e99 (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
# Contributor: Leo <thinkabit.ukim@gmail.com>
# Maintainer:
pkgname=flit
pkgver=3.2.0
pkgrel=1
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-py3-none-any.whl"
source="https://files.pythonhosted.org/packages/py3/f/flit/$_wheel_cli
	https://files.pythonhosted.org/packages/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/*
	rm -rf "$site"/**/tests
}

sha512sums="d16047f72e1e860f2596c8934f82fdad180980a88e3d482baa648d924f6304240cc264c94ae543938f9af234542fa5ac86e86321165dbd2a852721ab190bfe3f  flit-3.2.0-py3-none-any.whl
d452a8dc27f86ffe595c3bda96a8e7063ced120c6afcc60b2cb1bc40b6cc0179df873b22ba59dd7c1c7fb68e6aef7facf5b18b225a9915c9e257389347cc110d  flit_core-3.2.0-py3-none-any.whl
96a9eeebec7b362dec9e19309386a28df3243b5b8d84643de8d043a12ae174ca7b111b67a0a335ed0fa1069690b990ef66de5670326e225251ad3bbfef9e3b1e  install-wheel-scripts.py"