summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 0394fc81a98f2f3dc75971dd57bf116e69f6da03 (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
# Maintainer: Stefan Gehr <stefangehr@protonmail.com>

pkgname=python-pexpect-git
pkgver=r1628.aa98959
pkgrel=1
pkgdesc='For controlling and automating applications'
arch=(any)
url='https://pexpect.readthedocs.org/en/stable/'
license=(MIT)
depends=(python python-ptyprocess)
makedepends=(git python-build python-installer python-wheel python-setuptools)
conflicts=(python-pexpect)
source=("$pkgname"::"git+https://github.com/pexpect/pexpect")
sha512sums=('SKIP')

pkgver() {
	cd "$pkgname"
	printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
	cd "$pkgname"
	python -m build --wheel --no-isolation
}

package() {
	cd "$pkgname"
	python -m installer --destdir="$pkgdir" dist/*.whl
	install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}