123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657 |
- # Maintainer: txtsd <aur.archlinux@ihavea.quest>
- pkgname=flaresolverr
- _pkgname=flaresolverr
- __pkgname=FlareSolverr
- pkgver=3.1.0
- pkgrel=1
- pkgdesc='A proxy server to bypass Cloudflare protection'
- arch=('any')
- url='https://github.com/FlareSolverr/FlareSolverr'
- license=('MIT')
- depends=('chromium' 'python-bottle' 'python-waitress' 'python-selenium' 'python-func-timeout'
- 'python-pefile' 'python-requests' 'python-websockets' 'python-xvfbwrapper')
- makedepends=('git')
- # checkdepends=('python-webtest')
- conflicts=('flaresolverr-bin' 'flaresolverr-git')
- install='flaresolverr.install'
- source=("git+https://github.com/FlareSolverr/FlareSolverr.git#tag=v$pkgver"
- "flaresolverr.service"
- "flaresolverr.sysusers"
- "flaresolverr.tmpfiles"
- "flaresolverr.install")
- sha256sums=('SKIP'
- 'c147d51e7fd78e5e2b4648db5d1052a36b151559bfa08aa7776bd34aa0897bd0'
- '62f114d4e559cf9dae22bfd90759eff697e42da5f700a52988e70e78f3048ae2'
- '4a61a6d9db1a9f4ec0812d86ef524a7f575a45f272404f0ebfc79376628feeb2'
- 'f3585f385fe8dd2d619144b8e666f1883d3501ce05d81e7c3ed4a57f0d093e85')
- # check() {
- # cd "${srcdir}/${__pkgname}/src"
- #
- # python tests.py
- # python tests_sites.py
- # }
- package() {
- cd "${pkgdir}"
- install -dm755 "opt/${_pkgname}"
- install -Dm644 "${srcdir}/${__pkgname}/LICENSE" "${pkgdir}/usr/share/licenses/${_pkgname}/LICENSE"
- rm "${srcdir}/${__pkgname}/LICENSE"
- install -Dm644 "${srcdir}/flaresolverr.service" "${pkgdir}/usr/lib/systemd/system/${_pkgname}.service"
- # Checks one directory above src/
- # We don't want that
- sed -i "s/os.pardir, //" "${srcdir}/${__pkgname}/src/utils.py"
- cp -a "${srcdir}/${__pkgname}/src/"* "${pkgdir}/opt/${_pkgname}"
- cp "${srcdir}/${__pkgname}/package.json" "${pkgdir}/opt/${_pkgname}"
- install -Dm644 "${srcdir}/flaresolverr.sysusers" "${pkgdir}/usr/lib/sysusers.d/${_pkgname}.conf"
- install -Dm644 "${srcdir}/flaresolverr.tmpfiles" "${pkgdir}/usr/lib/tmpfiles.d/${_pkgname}.conf"
- }
|