summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 888b5b5e694d3743de74dd3eb6973a526d1e429d (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
# Maintainer: Zhang Hua <zhanghuadedn@gmail.com>
# Contributer: Aloxaf <aloxafx@gmail.com>

pkgname=python-playwright-git
pkgver=1.19.0.6.g14b56cf
pkgrel=1
pkgdesc="a Python library to automate Chromium, Firefox and WebKit browsers with a single API"
arch=(x86_64)
url=https://github.com/microsoft/playwright-python
license=(Apache)
provides=(python-playwright)
makedepends=('python-pip' 'python-wheel' 'git' 'curl')
depends=('python' 'python-greenlet' 'python-pyee' 'python-typing_extensions')
source=(${pkgname}::git+${url})
sha256sums=('SKIP')
pkgver() {
  cd ${srcdir}/${pkgname}
  git describe --tags | sed "s/-/./g;s/v//"
}
package() {
  cd ${srcdir}/${pkgname}
  pip install --isolated --root="$pkgdir" --ignore-installed --no-deps --no-warn-script-location "${srcdir}/${pkgname}"
  python -O -m compileall "${pkgdir}"
}