Date: Monday, September 6, 2021 @ 14:00:34 Author: arodseth Revision: 1011876
Add an optional dependency + remove extra hash sum + remove _name definition + a few minor stylistic changes Modified: nuitka/trunk/PKGBUILD ----------+ PKGBUILD | 41 +++++++++++++++++------------------------ 1 file changed, 17 insertions(+), 24 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2021-09-06 13:41:00 UTC (rev 1011875) +++ PKGBUILD 2021-09-06 14:00:34 UTC (rev 1011876) @@ -1,45 +1,38 @@ +# Maintainer: Alexander F. Rødseth <xypr...@archlinux.org> # Maintainer: David Runge <dv...@archlinux.org> -# Contributor: Alexander F. Rødseth <xypr...@archlinux.org> # Contributor: Panagiotis Mavrogiorgos <pma...@gmail.com> -_name=Nuitka pkgname=nuitka pkgver=0.6.16.4 -pkgrel=1 +pkgrel=2 pkgdesc='Python compiler with full language support and CPython compatibility' -arch=('any') +arch=(any) url='https://nuitka.net/' -license=('Apache') -depends=('python-appdirs' 'scons') -makedepends=('python-setuptools') -checkdepends=('ccache' 'fuse2' 'python-boto3' 'python-brotli' 'strace') +license=(Apache) +depends=(python-appdirs scons) +makedepends=(python-setuptools) +checkdepends=(ccache fuse2 python-boto3 python-brotli strace) optdepends=('ccache: for build caching' - 'chrpath: for building standalone executables') + 'chrpath: for building standalone executables' + 'pyside2: for using Qt5 APIs') options=(!emptydirs) -source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz") -sha512sums=('fccdc24674deac985d3afb56ec57b9ae18b29b745b7ce324f2cdc9383dfd8d273cae3da8e76a85a281c6636e300d346bb4658e8d4212318e1eede747d160c43a') +source=("https://files.pythonhosted.org/packages/source/N/${pkgname^}/${pkgname^}-${pkgver}.tar.gz") b2sums=('96992903d89a70921ab92ce4c5fa4b547b67cf0133098cce0fafc8037ca9d0b627fb21f9cc98e112d26766b39b023e1aef1a3eceff71f32d7f6a30db7314882d') -prepare() { - mv -v "${_name}-${pkgver}" "${pkgname}-${pkgver}" -} - build() { - cd "${pkgname}-${pkgver}" + cd ${pkgname^}-$pkgver python setup.py build } check() { - cd "${pkgname}-${pkgver}" + cd ${pkgname^}-$pkgver # skip tests for other interpreters and those that require network access - ./tests/run-tests --no-other-python --skip-reflection-test --skip-other-cpython-tests --skip-onefile-tests + # NOTE: the test uses "strace", which is currently not supported by the reproducible build system + ./tests/run-tests --no-other-python --skip-reflection-test --skip-onefile-tests --skip-other-cpython-tests } package() { - cd "${pkgname}-${pkgver}" - python setup.py install --skip-build \ - --optimize=1 \ - --root="${pkgdir}" - install -vDm 644 {Changelog,Developer_Manual,README}.rst \ - -t "${pkgdir}/usr/share/doc/${pkgname}/" + cd ${pkgname^}-$pkgver + python setup.py install --optimize=1 --root="$pkgdir" --skip-build + install -Dm644 {Changelog,Developer_Manual,README}.rst -t "$pkgdir/usr/share/doc/$pkgname/" }