summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: b0b71efd07649df03955a2719b84b10aef58123e (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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
# Maintainer: clalos <clalos at users dot noreply dot github dot com>

pkgname=browser-use-cli
_pyname=browser_use
pkgver=0.12.9
pkgrel=1
pkgdesc='CLI for browser automation with AI agents'
arch=(any)
url='https://github.com/browser-use/browser-use'
license=(MIT)
depends=(
  python
  python-aiofiles
  python-aiohttp
  python-anyio
  python-click
  python-cloudpickle
  python-distro
  python-dotenv
  python-google-api-core
  python-google-api-python-client
  python-google-auth
  python-google-auth-oauthlib
  python-httpx
  python-markdownify
  python-openai
  python-pillow
  python-psutil
  python-pydantic
  python-pydantic-settings
  python-portalocker
  python-pypdf
  python-pyotp
  python-reportlab
  python-requests
  python-rich
  python-screeninfo
  python-textual
  python-typing_extensions
  python-uuid7
  python-websockets
)
optdepends=(
  'python-anthropic: Anthropic/Claude LLM provider (AUR)'
  'python-docx: read/write .docx files in the agent filesystem (AUR)'
  'python-inquirerpy: interactive template selection for browser-use init (AUR)'
  'python-google-genai: Google Gemini LLM provider'
  'python-groq: Groq LLM provider'
  'python-ollama: Ollama local LLM provider'
  'python-mcp: MCP server mode'
  'python-posthog: telemetry'
)
makedepends=(
  python-build
  python-installer
  python-wheel
  python-hatchling
)
provides=(python-browser-use)
source=(
  "https://files.pythonhosted.org/packages/source/${_pyname::1}/$_pyname/$_pyname-$pkgver.tar.gz"
  "https://files.pythonhosted.org/packages/f5/54/23aae0681500a459fc4498b60754cb8ead8df964d8166e5915edb7e8136c/bubus-1.5.6-py3-none-any.whl"
  "https://files.pythonhosted.org/packages/56/12/386d8c6bf0448c43674e24d6194c3b57d62e5361e90bca3d58108819ad32/cdp_use-1.4.5-py3-none-any.whl"
  "https://files.pythonhosted.org/packages/84/e9/6dd224f9056b09622751821a91aa899b6d99447a761c74c4aabf4afd6e45/browser_use_sdk-3.4.2-py3-none-any.whl"
)
noextract=(
  bubus-1.5.6-py3-none-any.whl
  cdp_use-1.4.5-py3-none-any.whl
  browser_use_sdk-3.4.2-py3-none-any.whl
)
sha256sums=('d31a45a9967fcbfa53a9d7fc6db5e08bf7e13a5b8e62e7449f9f774f19b5c6cc'
            '254ae37cd9299941f5e9d6afb11f8e3ce069f83e5b9476f88c6b2e32912f237d'
            '8f8e2435e3a20e4009d2974144192cf3c132f6c2971338e156198814d9b91ecb'
            '1c6dac6e44f4ac4d552a3249d0282cb743d0d02bbadda093d78e599392c504d3')

build() {
  cd "$_pyname-$pkgver"
  /usr/bin/python -m build --wheel --no-isolation
}

package() {
  cd "$_pyname-$pkgver"
  /usr/bin/python -m installer --destdir="$pkgdir" dist/*.whl

  # Install bundled deps not available in official Arch repos or AUR
  for _whl in bubus-1.5.6-py3-none-any.whl \
              cdp_use-1.4.5-py3-none-any.whl \
              browser_use_sdk-3.4.2-py3-none-any.whl; do
    /usr/bin/python -m installer --destdir="$pkgdir" "$srcdir/$_whl"
  done

  install -Dm644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname"
}

# vim:set sw=2 sts=-1 et: