blob: 556e80ae2cfc1f1ebed872812427970aeb6dcf9b (
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
|
# Maintainer: Alexander Jacocks <alexander@redhat.com>
_pkgname=ansible-dev-environment
pkgname=ansible-dev-environment-git
pkgver=24.9.0.r3.g62cdcd8
pkgrel=1
pkgdesc="A pip-like install for ansible collections."
arch=('any')
url="https://github.com/ansible/ansible-dev-environment"
license=('GPLv3')
depends=(python python-{jsonschema,onigurumacffi} ansible-{core,runner} git)
makedepends=(python-{build,installer,pip,setuptools,setuptools-scm,wheel})
checkdepends=('python-pytest')
optdepends=('ansible: check official ansible collections')
provides=('ansible-dev-environment')
conflicts=('ansible-dev-environment')
source=("git+${url}.git")
sha256sums=('SKIP')
pkgver() {
cd "${srcdir}/${_pkgname}"
# Get the version number.
git describe --long --tags 2>/dev/null | sed 's/[^[:digit:]]*\(.\+\)-\([[:digit:]]\+\)-g\([[:xdigit:]]\{7\}\)/\1.r\2.g\3/;t;q1'
[ ${PIPESTATUS[0]} -eq 0 ] || \
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
cd "${srcdir}/${_pkgname}"
python -m build --wheel --skip-dependency-check --no-isolation
}
package() {
cd "${srcdir}/${_pkgname}"
echo python -m installer --destdir="$pkgdir" ${srcdir}/${_pkgname}/dist/*.whl
python -m installer --destdir="$pkgdir" ${srcdir}/${_pkgname}/dist/*.whl
install -Dm 644 LICENSE -t "${pkgdir}"/usr/share/licenses/${pkgname}
}
|