# Maintainer: Xiufeng Guo pkgname=caddy-bin pkgver=2.7.4 _distcommit=b633572824e26a07926a89284ddd1f1c49fbf1d6 pkgrel=1 pkgdesc="Fast and extensible multi-platform HTTP/1-2-3 web server with automatic HTTPS" arch=('x86_64') url="https://github.com/caddyserver/caddy" license=('Apache-2.0') provides=('caddy') conflicts=('caddy') backup=('etc/caddy/Caddyfile') source_x86_64=( "https://github.com/caddyserver/caddy/releases/download/v${pkgver}/caddy_${pkgver}_linux_amd64.tar.gz" caddy.service caddy-api.service caddy.tmpfiles caddy.sysusers Caddyfile index.html ) sha512sums_x86_64=( # Caddy '68cc53c79b88da5f1a33f5a1e1da7fbac5ad041380e91e27663b44e0cb2d8e07e08690295e86e9e65a37472b52f7d95f84f383ee0b8f3d5e1bd4b755d3990e6a' # caddy.service '54e5020a000f364677f107b4d23deb6ea09b2ab51c58251365c87832d99045a82e0fc71c74a256cab0bd6a5ea19036fb63f9ab8f64b153c2d898164585d18ebc' # caddy-api.service 'a69f9356d19c282b63e5179c5ddad344ce1586da6cc1c502ae537c14ee847375a4ce2015a140fc4d99a958041b8b51f4749645ffff0bea8ba7e7f9f92fb6e12b' # caddy.tmpfiles '55ee8d3f8b14f9adddc7a1026addcea4f85b4bae4cd512fd4da2a5e8adaae4b6fd0f486d2e3847f75518f4710a897b4fca84e48ee15700b968bad762125c4742' # caddy.sysusers 'c893d88fec89e37da6596030c8dce7103e7e575371e8542a24d2a0741e877358d85219f2d8ade9d6aa0f515efe1156a4badd9fef5f65f553a5b0c72330c4728f' # Caddyfile '716da3f4edeb3561243aeaf5c32b01ff7a4ac810b6deba8364fb12a1f71b6a5278c34a97b289bcfdc48784679b942bf780f1f36d416a575791168c94b0d59fe0' # index.html '67f9e38c08b99749ecac1472379a5ae1af5d971a4ead814ba65b1448e43b2fffb3a290b976ad95a35b40ca066677c55052bdb6370b3db89fdc14d3fe56819d6b' ) package() { # Install the executable install -d "$pkgdir"/usr/bin/ install -m 755 caddy "$pkgdir"/usr/bin/ # Copy from https://gitlab.archlinux.org/archlinux/packaging/packages/caddy/-/blob/main/PKGBUILD?ref_type=heads install -Dm 644 "${srcdir}/caddy.service" "${srcdir}/caddy-api.service" -t "${pkgdir}/usr/lib/systemd/system" install -Dm 644 "${srcdir}/caddy.tmpfiles" "${pkgdir}/usr/lib/tmpfiles.d/caddy.conf" install -Dm 644 "${srcdir}/caddy.sysusers" "${pkgdir}/usr/lib/sysusers.d/caddy.conf" install -Dm 644 "${srcdir}/Caddyfile" -t "${pkgdir}/etc/caddy" install -d "${pkgdir}/etc/caddy/conf.d" install -Dm 644 index.html "${pkgdir}/usr/share/caddy/index.html" }