Files

38 lines
978 B
Bash

# Maintainer: Christoph Reiter <reiter.christoph@gmail.com>
_pyname=setuptools_gettext
pkgname=python-setuptools-gettext
pkgver=0.1.19
pkgrel=1
pkgdesc='Setuptools plugin for building .mo files'
arch=(any)
url=https://github.com/breezy-team/setuptools-gettext
msys2_repository_url="https://github.com/breezy-team/setuptools-gettext"
license=(spdx:GPL-2.0-or-later)
msys2_references=(
'anitya: 299926'
'archlinux: python-setuptools-gettext'
'gentoo dev-python/setuptools-gettext'
'purl: pkg:pypi/setuptools-gettext'
)
depends=(
'python'
'python-setuptools'
)
makedepends=(
'python-build'
'python-installer'
)
source=("https://pypi.org/packages/source/${_pyname::1}/${_pyname}/${_pyname}-${pkgver}.tar.gz")
sha256sums=('233779932b1d0270027b4644f7ccfaba3005a3732bb083b55ea052d14524c8b0')
build() {
cd "${_pyname}-${pkgver}"
python -m build --wheel --no-isolation
}
package() {
python -m installer --destdir="${pkgdir}" "${_pyname}-${pkgver}"/dist/*.whl
}