[arch-commits] Commit in python-identify/trunk (PKGBUILD)
David Runge
dvzrv at gemini.archlinux.org
Tue Jan 11 23:51:43 UTC 2022
Date: Tuesday, January 11, 2022 @ 23:51:43
Author: dvzrv
Revision: 1101308
upgpkg: python-identify 2.4.3-1: Upgrade to 2.4.3.
Simplify quoting in file.
Remove unneeded prepare().
Modified:
python-identify/trunk/PKGBUILD
----------+
PKGBUILD | 27 ++++++++++++---------------
1 file changed, 12 insertions(+), 15 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2022-01-11 23:51:14 UTC (rev 1101307)
+++ PKGBUILD 2022-01-11 23:51:43 UTC (rev 1101308)
@@ -3,37 +3,34 @@
_name=identify
pkgname=python-identify
-pkgver=2.4.1
+pkgver=2.4.3
pkgrel=1
pkgdesc="File identification library for Python"
-arch=('any')
+arch=(any)
url="https://github.com/pre-commit/identify"
-license=('MIT')
-depends=('python')
-makedepends=('python-setuptools')
-checkdepends=('python-ukkonen' 'python-pytest')
+license=(MIT)
+depends=(python)
+makedepends=(python-setuptools)
+checkdepends=(python-ukkonen python-pytest)
+optdepends=('python-editdistance-s: for returning license identifiers')
optdepends=('python-ukkonen: for returning license identifiers')
source=("${_name}-${pkgver}.tar.gz::https://github.com/pre-commit/${_name}/archive/refs/tags/v${pkgver}.tar.gz")
-sha512sums=('69253bd364ed96ae64d83ee25da0d9aae97731e602f193008471dd99f47db2b87aa33dda1f87fb9edf939992e0452ca45f07f1d7d5e628352b50d4c2e68b7d0e')
-b2sums=('e7c04480159062ec25063d956dda6d904031bbcc30fdab6011ad24a8c3816490d0dfe08cec19fdfe660509a246da820ccfe41d4dcd909daa9c59b622bf506148')
+sha512sums=('2c82cc90d98a149dc211680c96d8c3bfcdbf955fd61eb207ae4a62d9bdb8f159707a7578838582bd16f45c300d9a8e7c5e7009a9daecb6b334b27fd160cc0d40')
+b2sums=('5ae76ac22ca462ae3dc7d71ed8d07344729ee54692cce52e1269057451733fab9c02647a51deed98cfa569b7758f37b4cc07353eb418314901b1eed2333eabdc')
-prepare() {
- mv -v "${_name}-${pkgver}" "$pkgname-$pkgver"
-}
-
build() {
- cd "$pkgname-$pkgver"
+ cd "${_name}-${pkgver}"
python setup.py build
}
check() {
- cd "$pkgname-$pkgver"
+ cd "${_name}-${pkgver}"
export PYTHONPATH="build:${PYTHONPATH}"
pytest -v
}
package() {
- cd "$pkgname-$pkgver"
+ cd "${_name}-${pkgver}"
python setup.py install --optimize=1 --root="${pkgdir}"
install -vDm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
install -vDm 644 README.md -t "${pkgdir}/usr/share/doc/${pkgname}"
More information about the arch-commits
mailing list