Files
marfrit-packages/arch/distcc-avahi/PKGBUILD
T
marfrit 2a72de0727
build and publish packages / distcc-avahi-aarch64 (push) Failing after 8s
PKGBUILD: pin source sha256 + wire real CI pipeline
- distcc-3.4 tarball hash + local support files hashed (no more SKIP)
- .gitea/workflows/build.yml now builds, signs, repo-adds and rsyncs
  to nc via the marfrit-repo-deploy key. Triggers on push to arch/**
  or manual workflow_dispatch.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-14 19:36:49 +00:00

71 lines
2.2 KiB
Bash

# Maintainer: Markus Fritsche <mfritsche@reauktion.de>
# Based on Arch Linux ARM's distcc PKGBUILD, rebuilt with --with-avahi
# so Zeroconf-announced compile servers are discoverable on the LAN.
#
# Why this exists: the ALARM aarch64 distcc binary package is built
# without --with-avahi, so the distccd --zeroconf flag is a no-op.
# The Arch x86_64 package is fine. This package replaces distcc on
# ALARM hosts with an avahi-aware build.
pkgname=distcc-avahi
_pkgname=distcc
pkgver=3.4
pkgrel=15
pkgdesc="Distributed compilation service for C, C++ and Objective-C (with Avahi/Zeroconf support)"
arch=('x86_64' 'aarch64')
url="https://github.com/distcc/distcc"
license=('GPL-2.0-only')
depends=('popt' 'python' 'avahi')
makedepends=('autoconf' 'automake' 'libtool' 'pkgconf' 'python-setuptools')
optdepends=('gtk3: for distccmon')
provides=("distcc=${pkgver}")
conflicts=('distcc')
replaces=('distcc')
backup=('etc/conf.d/distccd')
source=(
"${_pkgname}-${pkgver}.tar.gz::https://github.com/distcc/distcc/archive/refs/tags/v${pkgver}.tar.gz"
"distccd.conf"
"distccd.service"
"distcc.tmpfiles"
)
sha256sums=(
'37a34c9555498a1168fea026b292ab07e7bb394715d87d8403e0c33b16d2d008'
'38cb1912bfa15efd762dd868e049bdbcd58f1a46065255bc4648f821ba516d65'
'a4f1d1bb21d61d41f22e918b448cfb852a6d95b0d3b922bd82805090cb2ce41a'
'd8aee2eb895c02a39e0f2b76fd4a5c9dce91405f1c443286ca324628eadbf3f1'
)
prepare() {
cd "${_pkgname}-${pkgver}"
autoreconf -fiv
}
build() {
cd "${_pkgname}-${pkgver}"
./configure \
--prefix=/usr \
--sysconfdir=/etc \
--mandir=/usr/share/man \
--with-auth \
--with-avahi \
--without-libiberty \
--enable-rfc2553 \
--with-docdir="/usr/share/doc/${pkgname}"
make
make -C doc
}
check() {
cd "${_pkgname}-${pkgver}"
# Upstream test suite is flaky under makepkg; skip unless CHECK=1.
[ "${CHECK:-0}" = "1" ] && make check || true
}
package() {
cd "${_pkgname}-${pkgver}"
make DESTDIR="${pkgdir}" prefix=/usr install
install -Dm644 ../distccd.conf "${pkgdir}/etc/conf.d/distccd"
install -Dm644 ../distccd.service "${pkgdir}/usr/lib/systemd/system/distccd.service"
install -Dm644 ../distcc.tmpfiles "${pkgdir}/usr/lib/tmpfiles.d/distcc.conf"
}