packaging: drop the make route and the from-source APKBUILD
imsd had two build descriptions to keep in sync: project.cpp for crafter-build, and a Makefile mirroring it for distros that build from source, used by packaging/APKBUILD. CI has not used that route since 2026-09-02 — its apks are a crafter-build binary wrapped by APKBUILD.binary — and the recipe had not followed the releases: its pkgver was still 0.3.0. crafter-build is now the only build. AGENTS.md loses the make route (§4.2) and describes one recipe (§9.1). Tested: build-package.sh run end to end on this commit in a privileged alpine:edge container (podman) on the workstation.
This commit is contained in:
parent
19346908f9
commit
f089c8dd71
3 changed files with 24 additions and 296 deletions
|
|
@ -1,58 +0,0 @@
|
|||
# SPDX-License-Identifier: GPL-3.0-only
|
||||
# SPDX-FileCopyrightText: Copyright (C) 2026 Catcrafts®
|
||||
# Maintainer: Jorijn van der Graaf <jorijnvdgraaf@catcrafts.net>
|
||||
pkgname=imsd
|
||||
pkgver=0.3.0
|
||||
pkgrel=0
|
||||
pkgdesc="Userspace IMS/VoLTE daemon for mainline Linux phones"
|
||||
url="https://forgejo.catcrafts.net/Catcrafts/imsd"
|
||||
arch="aarch64 x86_64"
|
||||
license="GPL-3.0-only"
|
||||
# the media leg dlopen's the AMR-WB codecs; pw-record/pw-play drive PipeWire —
|
||||
# none of which abuild's .so auto-scan can see; polkit answers the daemons'
|
||||
# call-control check (ImsdBus)
|
||||
depends="modemmanager opencore-amr vo-amrwbenc pipewire-tools polkit"
|
||||
# clang/libc++ C++26 modules build (see Makefile); llvm-runtimes ships the
|
||||
# libc++ std module sources (/usr/share/libc++/v1/std.cppm) it precompiles
|
||||
makedepends="clang lld libc++-dev llvm-libunwind-dev llvm-runtimes glib-dev pkgconf"
|
||||
# the versioned provides both satisfies soc-qcom-modem's 81voltd dependency
|
||||
# and excludes the real package: 81voltd serves the modem's own ims-PDN
|
||||
# requests, which races imsd for the PDN and flaps it with a new prefix every
|
||||
# ~2.5 min — the two IMS stacks cannot share one PDN
|
||||
provides="81voltd=$pkgver-r$pkgrel"
|
||||
# imsd-ofono is opt-in: it carries the org.ofono shim that lets GNOME Calls
|
||||
# (Phosh, GNOME Mobile) drive imsd, plus the gschema override that repoints
|
||||
# Calls at the ofono provider. A Plasma Mobile phone wants imsd-dialerd, which
|
||||
# is in the main package, and must NOT get that override.
|
||||
subpackages="$pkgname-ofono:ofono"
|
||||
# restart the running daemons onto an upgrade (systemd's enqueue-marked)
|
||||
install="$pkgname.post-upgrade $pkgname.post-install $pkgname-ofono.post-upgrade $pkgname-ofono.post-install"
|
||||
source="$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz"
|
||||
builddir="$srcdir/$pkgname"
|
||||
|
||||
build() {
|
||||
make
|
||||
}
|
||||
|
||||
check() {
|
||||
make check
|
||||
}
|
||||
|
||||
package() {
|
||||
make install DESTDIR="$pkgdir"
|
||||
}
|
||||
|
||||
ofono() {
|
||||
pkgdesc="GNOME Calls (Phosh, GNOME Mobile) backend for imsd"
|
||||
depends="$pkgname=$pkgver-r$pkgrel calls"
|
||||
amove usr/bin/imsd-ofonod
|
||||
amove usr/libexec/imsd-ofono-restart-calls.sh
|
||||
amove usr/lib/systemd/system/imsd-ofonod.service
|
||||
amove usr/share/dbus-1/system.d/imsd-ofono.conf
|
||||
amove usr/share/glib-2.0/schemas/90_imsd-ofono.gschema.override
|
||||
amove usr/lib/systemd/system-preset/80-imsd-ofono.preset
|
||||
# enabled on install, like imsd.service in the main package
|
||||
mkdir -p "$subpkgdir"/etc/systemd/system/multi-user.target.wants
|
||||
ln -s /usr/lib/systemd/system/imsd-ofonod.service \
|
||||
"$subpkgdir"/etc/systemd/system/multi-user.target.wants/imsd-ofonod.service
|
||||
}
|
||||
Loading…
Reference in a new issue