summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 443c8c56731be0eb60949ef9c8c1e5e752de6199 (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
68
69
70
71
72
73
74
75
# Maintainer: Pellegrino Prevete <pellegrinoprevete@gmail.com>

_py=python
_pkg=customtkinter
_pkgname="${_py}-${_pkg}"
_name="CustomTkinter"
pkgbase="${_pkg}-git"
pkgname=(
  "${pkgbase}"
)
pkgver=v5.2.0+7+gd719950
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}"
  "tk"
)
makedepends=(
  "git"
  "${_py}"
  "${_py}-build"
  "${_py}-installer"
  "${_py}-wheel"
)
provides=(
  "${_pkgname}"
  "${_pkg}"
)
conflicts=(
  "${_pkg}"
)
install=
changelog=
noextract=()
source=(
  "${_pkg}::git+${url}.git"
  # "${_pypi_repo}/p/${_pkg}/${_pkg}-${pkgver}.tar.gz"
)
sha512sums=(
  'SKIP'
)

pkgver() {
  cd "${srcdir}/${_pkg}"
  git describe --tags | sed 's/-/+/g'
}

build() {
  cd "${srcdir}/${_pkg}"
  ${_py} -m build --wheel \
                  --no-isolation
}

package() {
  cd "${srcdir}/${_pkg}"
  ${_py} -m installer --destdir="${pkgdir}" \
                      "dist/"*".whl"
  install -Dm 0644 \
	  "LICENSE" \
          "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}

# vim:set sw=2 sts=-1 et: