# Compiling Time: 0 SBU
# Maintainer: DeX77 <dex+fw@dragonslave.de>

pkgname=protontricks
pkgver=1.12.1
pkgrel=1
pkgdesc="A simple wrapper that does winetricks things for Proton enabled games."
depends=('python3-vdf' 'winetricks' 'python3-setuptools' 'python3-pillow')
makedepends=('python3-setuptools_scm' 'python3-build' 'python3-installer' 'python3-wheel')
Finclude pypi
groups=('xapps-extra')
archs=('x86_64')
source+=(drop-vendored-vdf.patch)
sha1sums=('b6cbe071f6b4690619ab1d9fce31713617f1f9a2' \
          'dcf3b0dba5bdc37a52c1955d5f3e6eac3043fb52')

build() {
	Fcd
	Fpatchall
	Fexec rm -rf src/protontricks/_vdf || Fdie
	Fexec python -m build --wheel --no-isolation || Fdie
	Fexec python -m installer --destdir="$Fdestdir" dist/*.whl || Fdie
}

# optimization OK
