Date: Tuesday, January 31, 2023 @ 19:03:19 Author: felixonmars Revision: 1391460
upgpkg: python-faker 14.0.0-1 Modified: python-faker/trunk/PKGBUILD ----------+ PKGBUILD | 22 ++++++++++------------ 1 file changed, 10 insertions(+), 12 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2023-01-31 18:50:57 UTC (rev 1391459) +++ PKGBUILD 2023-01-31 19:03:19 UTC (rev 1391460) @@ -3,39 +3,37 @@ # Contributor: dnuux <[email protected]> pkgname=python-faker -pkgver=13.16.0 +pkgver=14.0.0 +_commit=429fb52f4ad19511dc8a6c2a43a371b17a839215 pkgrel=1 pkgdesc='Faker generates fake data for you.' arch=('any') url='https://faker.readthedocs.io/en/master/' license=('MIT') -provides=("python-fake-factory=$pkgver") -conflicts=('python-fake-factory') -replaces=('python-fake-factory') depends=('python-dateutil') -makedepends=('python-setuptools' 'python-pytest') +makedepends=('git' 'python-setuptools' 'python-pytest') checkdepends=('python-validators' 'python-ukpostcodeparser' 'python-random2' 'python-freezegun' 'python-pillow') -source=("$pkgname-$pkgver.tar.gz::https://github.com/joke2k/faker/archive/v$pkgver.tar.gz") -sha512sums=('61f08341d7711e77c291710b0c314d3fb9e0234d4327ae6a1e6e400bc0f362a6ada7ac66ef615f6c343f5c1bb1b39c55fca338c4dc34b2333fbe83731d4b68d7') +source=("git+https://github.com/joke2k/faker.git#commit=$_commit") +sha512sums=('SKIP') prepare() { - sed -i -e 's/==/>=/' faker-$pkgver/setup.py + sed -i -e 's/==/>=/' faker/setup.py } build() { - cd faker-$pkgver + cd faker python setup.py build } check() { - cd faker-$pkgver + cd faker python setup.py egg_info python -m pytest } package() { - cd faker-$pkgver + cd faker python setup.py install --root="$pkgdir" --optimize=1 - install -Dm 644 LICENSE.txt "$pkgdir"/usr/share/licenses/${pkgname}/LICENSE.txt + install -Dm644 LICENSE.txt -t "$pkgdir"/usr/share/licenses/$pkgname/ }
