77 lines
1.9 KiB
Bash
77 lines
1.9 KiB
Bash
# Maintainer: Jan Alexander Steffens (heftig) <heftig@archlinux.org>
|
|
|
|
pkgbase=my-pipewire-media-session
|
|
pkgname=(my-pipewire-media-session my-pipewire-media-session-docs)
|
|
_pkgbase=pipewire-media-session
|
|
_pkgname=(pipewire-media-session pipewire-media-session-docs)
|
|
pkgver=0.4.1
|
|
pkgrel=3
|
|
epoch=1
|
|
pkgdesc="Example session manager for PipeWire"
|
|
url="https://gitlab.freedesktop.org/pipewire/media-session"
|
|
license=(MIT)
|
|
arch=(x86_64)
|
|
makedepends=(git meson doxygen graphviz 'pipewire>=0.3.39' dbus
|
|
alsa-lib)
|
|
options=(debug)
|
|
_commit=a87008622c9d12dba6dd75c5bbf0bff126da22fb # tags/0.4.1
|
|
source=("$_pkgbase::git+https://gitlab.freedesktop.org/pipewire/media-session.git#commit=$_commit")
|
|
sha256sums=('SKIP')
|
|
|
|
# pkgver() {
|
|
# cd $_pkgbase
|
|
# git describe --tags | sed 's/[^-]*-g/r&/;s/-/+/g'
|
|
# }
|
|
|
|
prepare() {
|
|
cd $_pkgbase
|
|
}
|
|
|
|
build() {
|
|
local meson_options=(
|
|
-D docs=enabled
|
|
-D systemd=disabled
|
|
-D with-module-sets=[]
|
|
)
|
|
|
|
artix-meson $_pkgbase build "${meson_options[@]}"
|
|
meson compile -C build
|
|
}
|
|
|
|
check() {
|
|
meson test -C build --print-errorlogs
|
|
}
|
|
|
|
_pick() {
|
|
local p="$1" f d; shift
|
|
for f; do
|
|
d="$srcdir/$p/${f#$pkgdir/}"
|
|
mkdir -p "$(dirname "$d")"
|
|
mv "$f" "$d"
|
|
rmdir -p --ignore-fail-on-non-empty "$(dirname "$f")"
|
|
done
|
|
}
|
|
|
|
package_my-pipewire-media-session() {
|
|
depends=('pipewire>=0.3.39' libpipewire-0.3.so libdbus-1.so
|
|
libasound.so)
|
|
optdepends=('pipewire-media-session-docs: Documentation')
|
|
provides=(pipewire-session-manager)
|
|
|
|
meson install -C build --destdir "$pkgdir"
|
|
|
|
_pick docs "$pkgdir"/usr/share/doc
|
|
|
|
install -Dt "$pkgdir/usr/share/doc/$_pkgname" -m644 $_pkgbase/{NEWS,README}*
|
|
install -Dt "$pkgdir/usr/share/licenses/$_pkgname" -m644 $_pkgbase/COPYING
|
|
}
|
|
|
|
package_my-pipewire-media-session-docs() {
|
|
pkgdesc+=" - documentation"
|
|
|
|
mv docs/* "$pkgdir"
|
|
|
|
install -Dt "$pkgdir/usr/share/licenses/$_pkgname" -m644 $_pkgbase/COPYING
|
|
}
|
|
|
|
# vim:set sw=2 et:
|