phosh-arch/gnome-calls/PKGBUILD

72 lines
1.4 KiB
Bash
Raw Normal View History

2024-08-13 17:17:11 +02:00
# Maintainer: Danct12 <danct12@disroot.org>
pkgname=gnome-calls
2024-08-29 20:00:36 +02:00
pkgver=46.3
2024-08-13 17:17:11 +02:00
pkgrel=1
pkgdesc="Make and receive PSTN phone calls"
url="https://gitlab.gnome.org/GNOME/calls"
license=('GPL-3.0-or-later')
arch=('x86_64' 'armv7h' 'aarch64')
depends=(
'callaudiod'
'evolution-data-server'
'feedbackd'
'folks'
'gobject-introspection'
'gom'
'gst-plugins-bad'
'gst-plugins-good'
'gtk3'
'libhandy'
'libpeas'
'modemmanager'
'sofia-sip'
'wayland-protocols'
)
makedepends=(
'git'
'glib2-devel'
'meson'
'ninja'
'python-docutils'
'python-packaging'
'vala'
)
checkdepends=('xorg-server-xvfb')
replaces=('calls')
2024-08-29 20:00:36 +02:00
_commit="dcb70a9b77428ee7bde4c769dc04ec66cf80ab37" # tags/v46.3
2024-08-13 17:17:11 +02:00
source=("git+https://gitlab.gnome.org/GNOME/calls.git#commit=$_commit")
sha256sums=('4eddd4cbdd10c9f3f611573b05b5ce7275f1dab3f6ae1aeda9e4b2fc2ea2494b')
pkgver() {
cd calls
git describe --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}
prepare() {
cd calls
git submodule--helper update --init
local src
for src in "${source[@]}"; do
src="${src%%::*}"
src="${src##*/}"
[[ $src = *.patch ]] || continue
echo "Applying patch $src..."
patch -Np1 < "../$src"
done
}
build() {
arch-meson calls output
ninja -C output
}
## SIP test hanging
#check() {
# xvfb-run ninja -C output test
#}
package() {
DESTDIR="$pkgdir" ninja -C output install
}