diff options
author | git user | 2024-02-10 11:08:57 +0100 |
---|---|---|
committer | git user | 2024-02-10 11:08:57 +0100 |
commit | 502926ff997e80b4d4ce423c0a93615e146b0350 (patch) | |
tree | 4309029e5540e74b9fd85452d7e52ec94bf34ec7 | |
parent | 995c9a413548b78c66cf763e28b23c892ac61819 (diff) | |
download | aur-502926ff997e80b4d4ce423c0a93615e146b0350.tar.gz |
Switched away from `setup.py` to `python -m build` and `python -m installer`.
-rw-r--r-- | .SRCINFO | 9 | ||||
-rw-r--r-- | PKGBUILD | 17 |
2 files changed, 15 insertions, 11 deletions
@@ -1,22 +1,23 @@ pkgbase = ffgo-git pkgdesc = A graphical launcher for FlightGear, i.e., a program whose purpose is to allow easy assembling and running of an fgfs command line. (Fork of and replacement for 'FGo!'.) pkgver = 1.12.8.r601.20230917.f5624be - pkgrel = 1 + pkgrel = 2 url = http://frougon.net/projects/FFGo/ arch = any license = custom makedepends = gettext makedepends = imagemagick makedepends = librsvg + makedepends = python-installer makedepends = python-setuptools makedepends = python-sphinx + makedepends = python-wheel depends = flightgear depends = python>=3.4 depends = python-condconfigparser + depends = python-geographiclib + depends = python-pillow depends = tk>=8.5 - optdepends = geographiclib - optdepends = python-geographiclib - optdepends = python-pillow provides = ffgo=1.12.8.r601.20230917.f5624be conflicts = ffgo source = ffgo::git+https://github.com/frougon/FFGo.git @@ -1,11 +1,11 @@ -# Maintainer: dreieck (https://aur.archlinux.org/account/dreieck) +# Maintainer: dreieck (https://aur.archlinux.org/account/dreieck) # Contributer: Brian "Beej" Hall <beej@beej.us> # Contributer: Raphael Dümig <raphael[AT]duemig-neufahrn[DOT]de> _pkgname=ffgo pkgname="${_pkgname}-git" pkgver=1.12.8.r601.20230917.f5624be -pkgrel=1 +pkgrel=2 pkgdesc="A graphical launcher for FlightGear, i.e., a program whose purpose is to allow easy assembling and running of an fgfs command line. (Fork of and replacement for 'FGo!'.)" arch=('any') url="http://frougon.net/projects/FFGo/" @@ -15,19 +15,22 @@ depends=( 'flightgear' 'python>=3.4' 'python-condconfigparser' + 'python-geographiclib' + 'python-pillow' 'tk>=8.5' ) makedepends=( "gettext" "imagemagick" "librsvg" + "python-installer" "python-setuptools" "python-sphinx" + "python-wheel" ) optdepends=( - "geographiclib" - "python-geographiclib" - "python-pillow" + # "python-geographiclib: For more accurate location calculations." + # "python-pillow" ) provides=( "${_pkgname}=${pkgver}" @@ -62,13 +65,13 @@ build() { printf '%s\n' "${url}" > "upstream.url" make icons update-po update-mo update-pot doc - python setup.py build + python -m build --wheel --no-isolation } package() { cd "${srcdir}/${_pkgname}" - python setup.py install --root="$pkgdir" --optimize=1 --skip-build + python -m installer --destdir="$pkgdir" --compile-bytecode=2 dist/*.whl for _docfile in upstream.url ChangeLog ChangeLog.FGo README.rst; do install -D -v -m644 "${_docfile}" "${pkgdir}/usr/share/doc/${_pkgname}/${_docfile}" |