diff options
author | AtomicFS | 2024-05-05 00:24:33 +0200 |
---|---|---|
committer | AtomicFS | 2024-05-05 00:24:33 +0200 |
commit | 2c0355b21b9bc934fcdc9ff1b3a68ce42daa1973 (patch) | |
tree | 0c0a4da45005842e1c017148edf652e62106c87a | |
parent | cf82bee5ef742e060765b454fa86705024ec914c (diff) | |
download | aur-2c0355b21b9bc934fcdc9ff1b3a68ce42daa1973.tar.gz |
chore: cleanup
Signed-off-by: AtomicFS <vojtech_vesely@white-hat-hacker.icu>
-rw-r--r-- | .SRCINFO | 11 | ||||
-rw-r--r-- | PKGBUILD | 46 |
2 files changed, 30 insertions, 27 deletions
@@ -4,12 +4,13 @@ pkgbase = python-langdetect pkgrel = 4 url = https://github.com/Mimino666/langdetect arch = any - license = Apache + license = Apache-2.0 checkdepends = python-pytest - makedepends = python-setuptools + makedepends = python-build + makedepends = python-installer + makedepends = python-wheel depends = python-six - source = https://files.pythonhosted.org/packages/source/l/langdetect/langdetect-1.0.9.tar.gz - sha512sums = 7558d674c47b080c79e43a00a25d2c7f77188cf60bea2cecb3bebb803d75e1aa42b43c74bd26ea1b541f4cb927421908882cbec01a91f0913984217e71ccc8db - b2sums = ea8a9c3f16a2987c080742473bff4f2c1503f53fb3c2b40b0b1d6212bb6133ea22dce7864ffcfb8968c3a46b157d45cb3e2cf6f84bdbed0266cc716a853b032c + source = python-langdetect::git+https://github.com/Mimino666/langdetect#commit=a1598f1afcbfe9a758cfd06bd688fbc5780177b2 + sha512sums = SKIP pkgname = python-langdetect @@ -1,38 +1,40 @@ -# Maintainer: David Runge <dvzrv@archlinux.org> +# Maintainer: atomicfs <https://aur.archlinux.org/account/atomicfs> -_name=langdetect pkgname=python-langdetect pkgver=1.0.9 pkgrel=4 pkgdesc="Language detection library ported from Google's language-detection" arch=('any') url="https://github.com/Mimino666/langdetect" -license=('Apache') -depends=('python-six') -makedepends=('python-setuptools') -checkdepends=('python-pytest') -source=("https://files.pythonhosted.org/packages/source/l/${_name}/${_name}-${pkgver}.tar.gz") -sha512sums=('7558d674c47b080c79e43a00a25d2c7f77188cf60bea2cecb3bebb803d75e1aa42b43c74bd26ea1b541f4cb927421908882cbec01a91f0913984217e71ccc8db') -b2sums=('ea8a9c3f16a2987c080742473bff4f2c1503f53fb3c2b40b0b1d6212bb6133ea22dce7864ffcfb8968c3a46b157d45cb3e2cf6f84bdbed0266cc716a853b032c') +license=('Apache-2.0') +depends=( + 'python-six' +) +makedepends=( + 'python-build' + 'python-installer' + 'python-wheel' +) +checkdepends=( + 'python-pytest' +) +source=("${pkgname}::git+${url}#commit=a1598f1afcbfe9a758cfd06bd688fbc5780177b2") +# Upstream is a mess, switching between github releases, tags and just commits +sha512sums=('SKIP') -prepare() { - mv -v "${_name}-${pkgver}" "${pkgname}-${pkgver}" +check() { + cd "${srcdir}/${pkgname}" + pytest } build() { - cd "${pkgname}-${pkgver}" - python setup.py build -} - -check() { - cd "${pkgname}-${pkgver}" - pytest -v + cd "${srcdir}/${pkgname}" + python -m build --wheel --no-isolation } package() { - cd "${pkgname}-${pkgver}" - python setup.py install --skip-build \ - --optimize=1 \ - --root="${pkgdir}" + cd "${srcdir}/${pkgname}" + python -m installer --destdir="${pkgdir}" dist/*.whl + install -vDm 644 README.md -t "${pkgdir}/usr/share/doc/${pkgname}" } |