blob: 9eefaed4472fd7c4cb68db5182e71ac93c4465ff (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
# Maintainer: Alan Beale <the.mrabz@gmail.com>
_name=fake-useragent
pkgname=python-fake-useragent
pkgver=2.0.1
pkgrel=1
pkgdesc='Up to date simple useragent faker with real world database'
arch=('any')
url=https://github.com/hellysmile/fake-useragent
license=('Apache')
depends=(python python-importlib-metadata)
makedepends=(
'python-setuptools'
'python-build'
'python-installer'
'python-wheel'
)
source=("https://github.com/fake-useragent/fake-useragent/archive/refs/tags/$pkgver.tar.gz")
sha512sums=('b5ac8f8703b2ea471e3e4788c4d33f82cefd14af2332fc979438554b7a2e0b03ab9d36dd7326115e79e8310e840072e38aee3d2e5f4d0594c2e81df35e92c7bb')
build() {
cd $_name-$pkgver
python -m build --wheel --no-isolation
}
package() {
cd $_name-$pkgver
python -m installer --destdir="$pkgdir" dist/*.whl #--optimize=1 --skip-build
}
# vim:set ts=2 sw=2 et:
|