diff options
author | Christoph Fink | 2020-04-08 16:53:37 +0300 |
---|---|---|
committer | Christoph Fink | 2020-04-08 16:54:47 +0300 |
commit | c0a80b52e7bb701aa46df8b557d82465ee8ae513 (patch) | |
tree | 734d911101e101f5b129ac5d807f7325f1214a24 | |
download | aur-c0a80b52e7bb701aa46df8b557d82465ee8ae513.tar.gz |
0.0.17-0
-rw-r--r-- | .SRCINFO | 19 | ||||
-rw-r--r-- | PKGBUILD | 44 |
2 files changed, 63 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..994c65f2c624 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,19 @@ +pkgbase = python-shadow-useragent + pkgdesc = Pick the most common user-agents on the Internet + pkgver = 0.0.17 + pkgrel = 0 + url = https://github.com/lobstrio/shadow-useragent + arch = any + license = MIT + makedepends = python-setuptools + depends = python + depends = python-coloredlogs + depends = python-pytz + depends = python-requests + source = https://files.pythonhosted.org/packages/source/s/shadow-useragent/shadow-useragent-0.0.17.tar.gz + source = https://raw.githubusercontent.com/lobstrio/shadow-useragent/master/LICENSE + sha256sums = ace3f53c0ec697b36eb35bb04ccc04d4727bf924edd5bf7caad78b64d272d755 + sha256sums = 55c77c92b416cef25358a86bfaf96568b5fdead5914ccebd681893b874fa3bba + +pkgname = python-shadow-useragent + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..c35366d154e7 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,44 @@ +# 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=0 + +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" + "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 + + install -Dm644 "${srcdir}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" + +} |