summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: c3fce79462c3f1975d8c29a86f9801d0c0f32ad0 (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
# Maintainer: Greyson Christoforo <first name at last name dot net>
pkgname=python-gooey
pkgver=1.0.8.1
pkgrel=1
pkgdesc="Turn (almost) any Python command line program into a full GUI application with one line"
arch=(x86_64)
url="https://github.com/chriskiehl/Gooey"
license=('MIT')
depends=(
python
python-wxpython
python-pillow
python-psutil
python-colored
python-pygtrie
)
makedepends=(
python-setuptools
)
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/chriskiehl/Gooey/archive/refs/tags/${pkgver}.tar.gz")
sha256sums=('e62b2c6c4fe1049d824331399554ad95a65339c06de5b5bba1b647e5052ee0f8')

prepare() {
  cd Gooey-${pkgver}

  # changes to allow this to be built from the github tarballs again
  #sed "/^author =.*/i version = ${pkgver}" -i setup.cfg
  #sed -i "s,use_scm_version=True,use_scm_version=False,g" setup.py
  #sed '/\[tool.setuptools_scm\]/d' -i pyproject.toml

  # fix list backends
  #curl https://patch-diff.githubusercontent.com/raw/pyvisa/pyvisa/pull/545.patch | patch -p1

  # fix to prevent the need for an API change when connecting to serial devices
  #curl https://patch-diff.githubusercontent.com/raw/pyvisa/pyvisa/pull/547.patch | patch -p1
}

build() {
  cd Gooey-${pkgver}
  python setup.py build
}

package(){
  cd Gooey-${pkgver}
  python setup.py install --root="${pkgdir}" --optimize=1 --skip-build
}