summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 7067ea53f56a3e82805fba2714a0e60cb5801557 (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
# Maintainer: Juliette Monsel <j_4321 at protonmail dot com>
pkgname=('python-ttkwidgets')
pkgver=0.13.0
pkgrel=1
pkgdesc="Collection of widgets for Tkinter's ttk extensions"
_name=ttkwidgets
arch=('any')
url="https://github.com/RedFantom/ttkwidgets"
license=('GPL3')
source=("$_name-$pkgver.tar.gz::https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz")
sha512sums=('085c4e3c2e915e2bdae14731ba0d11f017aa103e60aaceb9e1700311074e609e569ae77d50e76eb598a96aab354a1a62062f8417201f262f34e51d344918f223')
makedepends=(python-build python-installer python-wheel python-setuptools)
depends=('tk' 'python-pillow')

prepare() {
  cd "$_name-$pkgver"
  sed -i "s|ANTIALIAS|LANCZOS|g" ttkwidgets/itemscanvas.py
}

build() {
    cd "$_name-$pkgver"
    python -m build --wheel --no-isolation
}

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