blob: faa6b207d8a0fdefa7ec2844b9fca010474072f1 (
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
|
# Maintainer: HLFH <gaspard@dhautefeuille.eu>
pkgname=flaresolverr-git
_pkgname=flaresolverr
__pkgname=FlareSolverr
pkgver=3.0.2.r1.g2d97f88
pkgrel=1
pkgdesc='A proxy server to bypass Cloudflare protection'
arch=('any')
url='https://github.com/FlareSolverr/FlareSolverr'
license=('MIT')
depends=('python' 'chromium' 'python-bottle' 'python-waitress' 'python-selenium' 'python-func-timeout' 'python-requests' 'python-websockets' 'python-xvfbwrapper')
makedepends=('git')
provides=('flaresolverr')
conflicts=('flaresolverr-bin' 'flaresolverr')
install='flaresolverr.install'
source=("git+$url"
"flaresolverr.service"
"flaresolverr.sysusers"
"flaresolverr.tmpfiles"
"flaresolverr.install")
b2sums=('SKIP'
'2e1ef2fd46add3a6245dc904cfa0b65ea4cf97b57c23e6b630785e5c4949ffe0cb84ca9480b8cd0dae9b5fbf973d4a959bdd6fc7031ab579181b3a5f03ac12e4'
'dcddece13d5e2f4cf67f67de656fd0b282c465c903221ce8f2194181e64323bb66e7b6e40738e4d04fdbb730a00f661d4b0725ae177a2adc333fa64faa2adb20'
'a1c34e40611e30a86d6ead6bec5fea3ca217dd3b317c84967ffb6f187c35e00eedcfcebda64cbb8bc42ea96b778366e71be702aeab5f1f9d320fe087b6147474'
'51d89f0c3bc9c0c66dfa56e6756e5e3525fad523f0f843a662684ccd288f958898257a4be00f92debf416203aabdbeeb75233e5d154da74f670e2cf10dbfd801')
pkgver() {
cd $__pkgname
git describe --long | sed 's/\([^-]*-g\)/r\1/;s/v//;s/-/./g'
}
package() {
mkdir -p "$pkgdir/srv/http/$_pkgname"
install -Dm644 flaresolverr.service "${pkgdir}/usr/lib/systemd/system/${_pkgname}.service"
install -Dm644 "${srcdir}/${__pkgname}/LICENSE" "${pkgdir}/usr/share/licenses/${_pkgname}/LICENSE"
rm "${srcdir}/${__pkgname}/LICENSE"
cp -a "${srcdir}/${__pkgname}/". "${pkgdir}/srv/http/${_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"
}
|