blob: 184d9c5c87902d147e1069d814bfe02c26d73d10 (
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
|
# Maintainer: Caltlgin Stsodaat <contact@fossdaily.xyz>
_pkgname='elasticsearch-faker'
pkgname="${_pkgname}-git"
pkgver=r10.937b254
pkgrel=1
pkgdesc='CLI tool to generate fake data for Elasticsearch'
arch=('any')
url='https://github.com/thombashi/elasticsearch-faker'
license=('MIT')
depends=('python-click'
'python-elasticsearch'
'python-envinfopy'
'python-faker'
'python-jinja'
'python-loguru'
'python-tqdm')
makedepends=('git' 'python-setuptools')
provides=("${_pkgname}")
conflicts=("${_pkgname}")
source=("git+${url}.git")
sha256sums=('SKIP')
pkgver() {
cd "${_pkgname}"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
cd "${_pkgname}"
python setup.py build
}
package() {
cd "${_pkgname}"
python setup.py install --root="${pkgdir}" --optimize=1 --skip-build
install -Dvm644 'README.rst' -t "${pkgdir}/usr/share/doc/${_pkgname}"
install -Dvm644 'LICENSE' -t "${pkgdir}/usr/share/licenses/${_pkgname}"
}
# vim: ts=2 sw=2 et:
|