summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: f0c53a66a7fe338182b511366dab225679ab6436 (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
# Maintainer: Hao Long <aur@esd.cc>

pkgname=cloudflared-bin
pkgver=2019.12.0
pkgrel=1
pkgdesc="An Argo Tunnel client which proxies any local webserver through the Cloudflare network"
arch=("x86_64" "i686" "armv6h" "armv7h")
url="https://developers.cloudflare.com/argo-tunnel/"
license=("custom")
depends=("glibc")
provides=("cloudflared")
conflicts=("cloudflared")
source=("https://raw.githubusercontent.com/cloudflare/cloudflared/master/LICENSE"
        "cloudflared.yml"
        "cloudflared@.service"
        "cloudflared-dns.service"
        "sysusers.d")
source_x86_64=("https://bin.equinox.io/a/kB2V1cmtbMi/cloudflared-2019.12.0-linux-amd64.tar.gz")
source_i686=("https://bin.equinox.io/a/2MVDiYDBogJ/cloudflared-2019.12.0-linux-386.tar.gz")
source_armv6h=("https://bin.equinox.io/a/3iCNEPbPMFP/cloudflared-2019.12.0-linux-arm.tar.gz")
source_armv7h=("https://bin.equinox.io/a/3iCNEPbPMFP/cloudflared-2019.12.0-linux-arm.tar.gz")
sha256sums=('6a486a0f6c00e87cce1caf0aa8db45ea9fefd0bf91d9be6fc44460160dc0dbda'
            'e769786afdfbd486a4d7ca99495dbe955c25e41b5e012b722b018ca17f269dac'
            '791ec5bebea5863544f5e0db0d9184a5bbb75e66725f7505e83e252f51d84376'
            'bc40e3f7e1b21b93a949a1b1c05639584943d9ce9cc7ccb96612688eeb9fd206'
            'bfda935c07b8e49821ee13e19433b1ed475ebb651e3008a32950734afbaef813')
sha256sums_x86_64=('cc689f2e42a05fa7c9ef4ea01c01911e26fc8f673ce2c1204b9b9091c6565bef')
sha256sums_i686=('98e87da5ae240d90d74cccb160219585d19e8aab22204070f405bc2ac2e63e0d')
sha256sums_armv6h=('18eda28b1d4694ede0ff46cd0ee34b6af9fcac3b784eb9dd9f0e8023d88b72af')
sha256sums_armv7h=('18eda28b1d4694ede0ff46cd0ee34b6af9fcac3b784eb9dd9f0e8023d88b72af')

package() {
    # Install License
    install -Dm644 LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE

    # Install Binary
    install -Dm755 cloudflared ${pkgdir}/usr/bin/cloudflared

    # Configuration File
    install -Dm644 cloudflared.yml ${pkgdir}/etc/cloudflared/cloudflared.yml.example
    install -Dm644 -t ${pkgdir}/usr/lib/systemd/system cloudflared{@,-dns}.service

    # Post install
    install -Dm644 sysusers.d ${pkgdir}/usr/lib/sysusers.d/cloudflared.conf
}

# vim: ts=2 sw=2 et: