50 lines
1.4 KiB
Bash
50 lines
1.4 KiB
Bash
# Template file for 'flatpak'
|
|
pkgname=flatpak
|
|
version=1.5.0
|
|
revision=1
|
|
build_style=gnu-configure
|
|
build_helper="gir"
|
|
configure_args="
|
|
--with-system-bubblewrap
|
|
--with-system-helper-user=_flatpak
|
|
$(vopt_enable gir introspection)"
|
|
hostmakedepends="bubblewrap glib-devel libxslt pkg-config bison
|
|
docbook docbook-xml docbook-xsl"
|
|
makedepends="appstream-glib-devel gpgme-devel json-glib-devel libcap-devel
|
|
libostree-devel libseccomp-devel polkit-devel dconf-devel fuse-devel"
|
|
depends="bubblewrap gnupg2"
|
|
checkdepends="bubblewrap dbus"
|
|
short_desc="Application sandboxing and distribution framework"
|
|
maintainer="Duncaen <duncaen@voidlinux.org>"
|
|
license="LGPL-2.1-or-later"
|
|
homepage="https://flatpak.org/"
|
|
changelog="https://github.com/flatpak/flatpak/blob/master/NEWS"
|
|
distfiles="https://github.com/flatpak/flatpak/releases/download/${version}/flatpak-${version}.tar.xz"
|
|
checksum=1a13f4c54c136e728e96406846f26b84d9d5986caf17868aa73917d7588c471e
|
|
|
|
build_options="gir"
|
|
build_options_default="gir"
|
|
|
|
system_accounts="_flatpak"
|
|
|
|
if [ "$CROSS_BUILD" ]; then
|
|
configure_args+=" --enable-selinux-module=no"
|
|
fi
|
|
|
|
post_install() {
|
|
rm -rf $DESTDIR/usr/lib/systemd
|
|
}
|
|
|
|
flatpak-devel_package() {
|
|
short_desc+=" - development files"
|
|
depends="${sourcepkg}>=${version}_${revision} libglib-devel libostree-devel"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove usr/lib/pkgconfig
|
|
vmove "usr/lib/*.so"
|
|
vmove usr/share/gtk-doc
|
|
if [ "$build_option_gir" ]; then
|
|
vmove usr/share/gir-1.0
|
|
fi
|
|
}
|
|
}
|