2022-11-18 00:23:39 +00:00
|
|
|
# Maintainer: Jan Alexander Steffens (heftig) <heftig@archlinux.org>
|
|
|
|
# Contributor: Bartłomiej Piotrowski <bpiotrowski@archlinux.org>
|
|
|
|
# Contributor: Jan Alexander Steffens (heftig) <jan.steffens@gmail.com>
|
|
|
|
|
|
|
|
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
|
|
|
# - move socat to makedepends
|
|
|
|
# - set -Dtests=false
|
|
|
|
|
2023-11-18 21:04:11 +00:00
|
|
|
# TODO: Keep at stable versions starting with 1.16.0
|
2024-01-18 15:43:20 +00:00
|
|
|
# https://gitlab.archlinux.org/archlinux/packaging/packages/flatpak/-/issues/1
|
2023-11-18 21:04:11 +00:00
|
|
|
|
2022-11-18 00:23:39 +00:00
|
|
|
pkgbase=flatpak
|
2023-11-18 21:04:11 +00:00
|
|
|
pkgname=(
|
|
|
|
flatpak
|
|
|
|
flatpak-docs
|
|
|
|
)
|
2024-04-18 23:07:33 +00:00
|
|
|
pkgver=1.15.8
|
2024-04-01 12:53:08 +00:00
|
|
|
pkgrel=1
|
2022-11-18 00:23:39 +00:00
|
|
|
epoch=1
|
|
|
|
pkgdesc="Linux application sandboxing and distribution framework (formerly xdg-app)"
|
|
|
|
url="https://flatpak.org"
|
|
|
|
arch=(x86_64)
|
2024-04-01 12:53:08 +00:00
|
|
|
license=(LGPL-2.1-or-later)
|
2023-02-07 18:50:07 +00:00
|
|
|
depends=(
|
|
|
|
appstream
|
2024-04-01 12:53:08 +00:00
|
|
|
bash
|
2023-02-07 18:50:07 +00:00
|
|
|
bubblewrap
|
|
|
|
curl
|
|
|
|
dbus
|
2024-04-01 12:53:08 +00:00
|
|
|
dconf
|
2023-02-07 18:50:07 +00:00
|
|
|
fuse3
|
2024-04-01 12:53:08 +00:00
|
|
|
gcc-libs
|
|
|
|
gdk-pixbuf2
|
2023-02-07 18:50:07 +00:00
|
|
|
glib2
|
2024-04-01 12:53:08 +00:00
|
|
|
glibc
|
|
|
|
gpgme
|
2023-02-07 18:50:07 +00:00
|
|
|
json-glib
|
|
|
|
libarchive
|
|
|
|
libmalcontent
|
|
|
|
libseccomp
|
|
|
|
libxau
|
2024-04-01 12:53:08 +00:00
|
|
|
libxml2
|
2023-02-07 18:50:07 +00:00
|
|
|
ostree
|
|
|
|
polkit
|
|
|
|
python
|
2024-04-01 12:53:08 +00:00
|
|
|
python-gobject
|
2023-02-07 18:50:07 +00:00
|
|
|
systemd
|
2024-04-01 12:53:08 +00:00
|
|
|
systemd-libs
|
2023-11-18 21:04:11 +00:00
|
|
|
wayland
|
2023-02-07 18:50:07 +00:00
|
|
|
xdg-dbus-proxy
|
2023-11-18 21:04:11 +00:00
|
|
|
xdg-utils
|
2024-04-01 12:53:08 +00:00
|
|
|
zstd
|
2023-02-07 18:50:07 +00:00
|
|
|
)
|
|
|
|
makedepends=(
|
|
|
|
docbook-xsl
|
|
|
|
git
|
|
|
|
gobject-introspection
|
|
|
|
gtk-doc
|
|
|
|
meson
|
2024-04-01 12:53:08 +00:00
|
|
|
python-packaging
|
2023-02-07 18:50:07 +00:00
|
|
|
python-pyparsing
|
2023-11-18 21:04:11 +00:00
|
|
|
wayland-protocols
|
2023-02-07 18:50:07 +00:00
|
|
|
xmlto
|
|
|
|
socat
|
|
|
|
)
|
|
|
|
checkdepends=(
|
|
|
|
valgrind
|
|
|
|
)
|
2022-11-18 00:23:39 +00:00
|
|
|
source=(
|
2024-04-18 23:07:33 +00:00
|
|
|
"git+https://github.com/flatpak/flatpak?signed#tag=$pkgver"
|
2022-11-18 00:23:39 +00:00
|
|
|
git+https://gitlab.gnome.org/GNOME/libglnx.git
|
2024-04-01 12:53:08 +00:00
|
|
|
git+https://github.com/containers/bubblewrap
|
2022-11-18 00:23:39 +00:00
|
|
|
git+https://github.com/flatpak/xdg-dbus-proxy
|
|
|
|
git+https://gitlab.gnome.org/alexl/variant-schema-compiler.git
|
|
|
|
https://dl.flathub.org/repo/flathub.flatpakrepo
|
|
|
|
flatpak-bindir.sh
|
|
|
|
)
|
2024-04-18 23:07:33 +00:00
|
|
|
b2sums=('e71a1d60eeda7d2fcbf714f153fb494ef2d0fa72d12654b3f04b889a35c40c7181b04e8d1658b53e256cee8a8982fb982d685d3d926fa50f3e866e178c1156f7'
|
2023-02-07 18:50:07 +00:00
|
|
|
'SKIP'
|
|
|
|
'SKIP'
|
|
|
|
'SKIP'
|
|
|
|
'SKIP'
|
|
|
|
'c094461a28dab284c1d32cf470f38118a6cbce27acce633b81945fb859daef9bdec1261490f344221b5cacf4437f53934cb51173f7ad2f1d2e05001139e75c54'
|
2024-04-01 12:53:08 +00:00
|
|
|
'1c45caa65e2a1598f219977d5a81dcb8ea5d458880c43c40ba452b0c77cbbf41b36fa6911741f22c807d318e04e39e4fcc1455ed8d68faaba10162dae2570abc')
|
2024-04-18 23:07:33 +00:00
|
|
|
validpgpkeys=(
|
|
|
|
DA98F25C0871C49A59EAFF2C4DE8FF2A63C7CC90 # Simon McVittie <smcv@collabora.com>
|
|
|
|
)
|
2022-11-18 00:23:39 +00:00
|
|
|
|
|
|
|
prepare() {
|
|
|
|
cd flatpak
|
|
|
|
|
|
|
|
git submodule init
|
2024-01-18 15:43:20 +00:00
|
|
|
git submodule set-url subprojects/libglnx "$srcdir/libglnx"
|
|
|
|
git submodule set-url subprojects/bubblewrap "$srcdir/bubblewrap"
|
|
|
|
git submodule set-url subprojects/dbus-proxy "$srcdir/xdg-dbus-proxy"
|
|
|
|
git submodule set-url subprojects/variant-schema-compiler "$srcdir/variant-schema-compiler"
|
2024-04-18 23:07:33 +00:00
|
|
|
git -c protocol.file.allow=always -c protocol.allow=never submodule update
|
2022-11-18 00:23:39 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
|
|
|
local meson_options=(
|
|
|
|
-D dbus_config_dir=/usr/share/dbus-1/system.d
|
|
|
|
-D selinux_module=disabled
|
|
|
|
-D system_bubblewrap=bwrap
|
|
|
|
-D system_dbus_proxy=xdg-dbus-proxy
|
|
|
|
-D tests=false
|
|
|
|
)
|
|
|
|
|
|
|
|
arch-meson flatpak build "${meson_options[@]}"
|
|
|
|
meson compile -C build
|
|
|
|
}
|
|
|
|
|
|
|
|
check() {
|
2024-04-18 23:07:33 +00:00
|
|
|
# Broken and gets stuck in our containers
|
2024-04-01 12:53:08 +00:00
|
|
|
: || meson test -C build --print-errorlogs
|
2022-11-18 00:23:39 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
_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_flatpak() {
|
2023-02-07 18:50:07 +00:00
|
|
|
depends+=(
|
|
|
|
libostree-1.so
|
|
|
|
xdg-desktop-portal
|
|
|
|
)
|
2022-11-18 00:23:39 +00:00
|
|
|
provides=(libflatpak.so)
|
|
|
|
|
|
|
|
meson install -C build --destdir "$pkgdir"
|
|
|
|
|
|
|
|
install -Dt "$pkgdir/etc/profile.d" -m644 flatpak-bindir.sh
|
|
|
|
install -Dt "$pkgdir/etc/flatpak/remotes.d" flathub.flatpakrepo
|
|
|
|
|
|
|
|
_pick docs "$pkgdir"/usr/share/{doc,gtk-doc}
|
|
|
|
}
|
|
|
|
|
|
|
|
package_flatpak-docs() {
|
|
|
|
pkgdesc+=" (documentation)"
|
|
|
|
depends=()
|
|
|
|
mv docs/* "$pkgdir"
|
|
|
|
}
|
|
|
|
|
|
|
|
# vim:set sw=2 sts=-1 et:
|