blob: b5d5e31a8b4e88c7290857fa2cca502f36bd5c47 (
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: Pellegrino Prevete <pellegrinoprevete@gmail.com>
_py=python
_pkg=customtkinter
_pkgname="${_py}-${_pkg}"
_name="CustomTkinter"
pkgbase="${_pkg}"
pkgname=(
"${_pkg}"
)
pkgver=5.2.0
pkgrel=1
pkgdesc="A modern and customizable python UI-library based on Tkinter."
arch=(
x86_64
i686
pentium4
aarch64
armv7h
)
_ns="TomSchimansky"
url="https://github.com/${_ns}/${_pkg}"
license=(
'MIT'
)
depends=(
"${_py}"
"${_py}-darkdetect"
"tk"
)
makedepends=(
"${_py}"
"${_py}-build"
"${_py}-installer"
"${_py}-wheel"
)
provides=(
"${_pkgname}"
)
install=
changelog=
noextract=()
_pypi_repo="https://files.pythonhosted.org/packages/source"
source=(
"${pkgname}-${pkgver}.tar.gz::${url}/archive/refs/tags/v${pkgver}.tar.gz"
# "${_pypi_repo}/p/${_pkg}/${_pkg}-${pkgver}.tar.gz"
)
sha512sums=(
'88ce123b83fb6522c10d578e66ffbfe695a73aff91299edeaa38e0460dffb11109c3e04db1d93a655622a95aa6e10a850267f0e4ca97e15b00fe563ce8bf9c9d'
)
build() {
cd "${srcdir}/${_name}-${pkgver}"
${_py} -m build --wheel \
--no-isolation
}
package() {
cd "${srcdir}/${_name}-${pkgver}"
${_py} -m installer --destdir="${pkgdir}" \
"dist/"*".whl"
install -Dm 0644 \
"LICENSE" \
"${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
# vim:set sw=2 sts=-1 et:
|