blob: b4b5a5c896da6867bad8af83398f0e875b95c620 (
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
|
# Maintainer: fuero <fuerob@gmail.com>
_pkgname=bashhub-client
pkgname=${_pkgname}
# renovate: datasource=github-releases depName=rcaloras/bashhub-client
pkgver=2.4.1
pkgrel=6
pkgdesc='saves every terminal command entered across all sessions and system to the cloud'
arch=('x86_64')
_repo_prefix='github.com/rcaloras'
_repo_name="${_pkgname}"
url="https://${_repo_prefix}/${_repo_name}"
source=(
${_pkgname}-${pkgver}.tar.gz::${url}/archive/refs/tags/${pkgver}.tar.gz
)
sha256sums=('6db2cc0aacab771aac4d9da9c3d5af51f5a5638b54556943eff15310aad83fac')
license=('Apache')
depends=(
python
python-bson
python-jsonpickle
python-inflection
python-humanize
python-npyscreen
)
conflicts=(${_pkgname}-git)
provides=(${_pkgname})
checkdepends=(
python-pytest
python-click
python-dateutil
python-requests
python-future
python-mock
)
makedepends=(
python-build
python-installer
python-wheel
python-setuptools
)
prepare() {
cd "$_pkgname-$pkgver"
sed -i -e "s/'__version__'/__version__/g" setup.py
}
build() {
cd "$_pkgname-$pkgver"
python -m build --wheel --no-isolation
}
package() {
cd "$_pkgname-$pkgver"
python -m installer --destdir="$pkgdir" dist/*.whl
for _file in *.md
do
install -Dm644 "${_file}" "${pkgdir}/usr/share/doc/${pkgname}/$(basename ${_file})"
done
local site_packages=$(python -c "import site; print(site.getsitepackages()[0])")
rm -rf "${pkgdir}${site_packages}/tests"
}
check() {
cd "$_pkgname-$pkgver"
pytest
}
|