blob: 3db6089b7c7a3f4182c507d597d61d3dccc7aa79 (
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
|
# Maintainer: Carl Smedstad <carl.smedstad at protonmail dot com>
pkgname=dotbot
pkgver=1.20.1
pkgrel=2
pkgdesc="A tool that bootstraps your dotfiles"
arch=(any)
url="https://github.com/anishathalye/dotbot"
license=(MIT)
depends=(
python
python-yaml
)
makedepends=(
git
python-build
python-installer
python-setuptools
python-wheel
)
checkdepends=(
python-pytest
)
_commit=840cd164d20713a8e34f3aeb4ab1121c9745fad9 # git rev-parse "$pkgver"
source=("git+$url.git#commit=$_commit")
sha256sums=('SKIP')
_archive="$pkgname"
pkgver() {
cd "$_archive"
git describe --tags | sed 's/^v//'
}
build() {
cd "$_archive"
python -m build --wheel --no-isolation
}
check() {
cd "$_archive"
rm -rf tmp_install
_site_packages=$(python -c "import site; print(site.getsitepackages()[0])")
python -m installer --destdir=tmp_install dist/*.whl
export PYTHONPATH="$PWD/tmp_install/$_site_packages"
pytest
}
package() {
cd "$_archive"
python -m installer --destdir="$pkgdir" dist/*.whl
install -Dm644 -t "$pkgdir/usr/share/licenses/$pkgname" LICENSE.md
}
|