mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-18 22:54:00 +00:00
140 lines
3.3 KiB
Bash
140 lines
3.3 KiB
Bash
# 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
|
|
|
|
pkgbase=flatpak
|
|
pkgname=(flatpak flatpak-docs)
|
|
pkgver=1.15.2
|
|
pkgrel=1
|
|
epoch=1
|
|
pkgdesc="Linux application sandboxing and distribution framework (formerly xdg-app)"
|
|
url="https://flatpak.org"
|
|
arch=(x86_64)
|
|
license=(LGPL)
|
|
depends=(
|
|
appstream
|
|
bubblewrap
|
|
curl
|
|
dbus
|
|
fuse3
|
|
glib2
|
|
json-glib
|
|
libarchive
|
|
libmalcontent
|
|
libseccomp
|
|
libxau
|
|
ostree
|
|
polkit
|
|
python
|
|
systemd
|
|
xdg-dbus-proxy
|
|
)
|
|
makedepends=(
|
|
docbook-xsl
|
|
git
|
|
gobject-introspection
|
|
gtk-doc
|
|
meson
|
|
python-pyparsing
|
|
xmlto
|
|
socat
|
|
)
|
|
checkdepends=(
|
|
valgrind
|
|
)
|
|
_commit=a98bbbe2ce7e5f370064e56411722a662f385ac1 # tags/1.15.2^0
|
|
source=(
|
|
"git+https://github.com/flatpak/flatpak#commit=$_commit"
|
|
git+https://gitlab.gnome.org/GNOME/libglnx.git
|
|
git+https://github.com/projectatomic/bubblewrap
|
|
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
|
|
fusermount3.diff
|
|
flatpak-bindir.sh
|
|
)
|
|
b2sums=('SKIP'
|
|
'SKIP'
|
|
'SKIP'
|
|
'SKIP'
|
|
'SKIP'
|
|
'c094461a28dab284c1d32cf470f38118a6cbce27acce633b81945fb859daef9bdec1261490f344221b5cacf4437f53934cb51173f7ad2f1d2e05001139e75c54'
|
|
'50746b629bdfc8de0a437c18883460e1ce31767bc723f1eaae564d05ce84f6a9255177fafb5d84eae8135c6dd1cd2422742bc680a2aa24081708d4a6e9b76dfc'
|
|
'1c45caa65e2a1598f219977d5a81dcb8ea5d458880c43c40ba452b0c77cbbf41b36fa6911741f22c807d318e04e39e4fcc1455ed8d68faaba10162dae2570abc')
|
|
|
|
pkgver() {
|
|
cd flatpak
|
|
git describe --tags | sed 's/[^-]*-g/r&/;s/-/+/g'
|
|
}
|
|
|
|
prepare() {
|
|
cd flatpak
|
|
|
|
# Support fuse3
|
|
# https://bugs.archlinux.org/task/75623
|
|
git apply -3 ../fusermount3.diff
|
|
|
|
git submodule init
|
|
git submodule set-url libglnx "$srcdir/libglnx"
|
|
git submodule set-url bubblewrap "$srcdir/bubblewrap"
|
|
git submodule set-url dbus-proxy "$srcdir/xdg-dbus-proxy"
|
|
git submodule set-url variant-schema-compiler "$srcdir/variant-schema-compiler"
|
|
git -c protocol.file.allow=always submodule update
|
|
}
|
|
|
|
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() {
|
|
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_flatpak() {
|
|
depends+=(
|
|
libostree-1.so
|
|
xdg-desktop-portal
|
|
)
|
|
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
|
|
|
|
# Fixup mode to match polkit
|
|
install -d -o root -g 102 -m 750 "$pkgdir/usr/share/polkit-1/rules.d"
|
|
|
|
_pick docs "$pkgdir"/usr/share/{doc,gtk-doc}
|
|
}
|
|
|
|
package_flatpak-docs() {
|
|
pkgdesc+=" (documentation)"
|
|
depends=()
|
|
mv docs/* "$pkgdir"
|
|
}
|
|
|
|
# vim:set sw=2 sts=-1 et:
|