blob: cf868288ad9f458c6ff7719eec9e147bd6fa9f5e (
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
# Maintainer: peippo <christoph+aur@christophfink.com>
pkgname=python-shadow-useragent
_name=${pkgname#python-}
pkgdesc="Pick the most common user-agents on the Internet"
url="https://github.com/lobstrio/shadow-useragent"
pkgver=0.0.17
pkgrel=8
arch=("any")
license=("MIT")
makedepends=(
"python-setuptools"
)
depends=(
"python"
"python-coloredlogs"
"python-pytz"
"python-requests"
)
source=(
"https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz"
"${_name}-LICENSE::https://raw.githubusercontent.com/lobstrio/shadow-useragent/master/LICENSE"
)
sha256sums=("ace3f53c0ec697b36eb35bb04ccc04d4727bf924edd5bf7caad78b64d272d755"
"55c77c92b416cef25358a86bfaf96568b5fdead5914ccebd681893b874fa3bba")
build() {
cd "${srcdir}"/${_name}-${pkgver}
python setup.py build
}
package() {
cd "${srcdir}/${_name}-${pkgver}"
python setup.py install --root="${pkgdir}" --optimize=1 --skip-build
install -Dm644 "${srcdir}/${_name}-LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
install -Dm644 \
"${srcdir}/${_name}-${pkgver}/README.md" \
"${pkgdir}/usr/share/doc/${pkgname}/README.md"
}
|