python-selenium: import latest PKGBUILD from AUR

This commit is contained in:
kbipinkumar 2025-01-22 21:23:32 +05:30
parent 168c08fb59
commit cbfd8633fc
No known key found for this signature in database
GPG key ID: C67233497C15E476

View file

@ -8,7 +8,7 @@
pkgname=python-selenium
_pkgname="${pkgname#python-}"
pkgver=4.28.0
pkgrel=1
pkgrel=2
pkgdesc="Python language bindings for Selenium WebDriver"
arch=(x86_64)
url="https://github.com/SeleniumHQ/selenium"
@ -59,4 +59,8 @@ build() {
package() {
cd "${_archive}"
python -m installer --destdir="${pkgdir}" dist/*.whl
local site_packages=$(python -c "import site; print(site.getsitepackages()[0])")
cp selenium/webdriver/remote/*.js "${pkgdir}/${site_packages}/selenium/webdriver/remote"
cp selenium/webdriver/common/*.js "${pkgdir}/${site_packages}/selenium/webdriver/common"
}