# Maintainer: exponential # Contributor: Alan Beale (AUR) _name=fake-useragent pkgname=python3-fake-useragent pkgver=1.5.1 pkgrel=0 pkgdesc='Up to date simple useragent faker with real world database' arch=('all') url=https://github.com/fake-useragent/fake-useragent license=('Apache') depends=('python3') makedepends=('python3-build' 'python3-installer' 'python3-wheel') source=("$pkgname-$pkgver.tar.gz::https://github.com/fake-useragent/fake-useragent/archive/refs/tags/$pkgver.tar.gz") b2sums=('661a9cd8efde46d0dabc587df2292a168ecac62b3eda21fdc69a33e02b135991d73baba74940c9c5d070d6b4cddd35c59ddcf6a00223e099dec7da4f2ffccb8c') build() { cd $_name-$pkgver python3 -m build --wheel --no-isolation } package() { cd $_name-$pkgver python3 -m installer --destdir="$pkgdir" dist/*.whl #--optimize=1 --skip-build # Manual remove local mv "$pkgdir/usr/local/"* "$pkgdir/usr/" rmdir "$pkgdir/usr/local" #doc install -Dm644 "README.md" "$pkgdir/usr/share/doc/$pkgname/readme" ln -s /usr/share/common-licenses/Apache-2.0 "$pkgdir/usr/share/doc/$pkgname/" } # vim:set ts=2 sw=2 et: