void-packages/srcpkgs/flatpak/template
2019-02-10 12:53:45 -02:00

45 lines
1.3 KiB
Bash

# Template file for 'flatpak'
pkgname=flatpak
version=1.2.2
revision=1
build_style=gnu-configure
build_helper="gir"
configure_args="--disable-documentation --with-system-bubblewrap
$(vopt_enable gir introspection)"
hostmakedepends="bubblewrap glib-devel libxslt pkg-config bison"
makedepends="appstream-glib-devel gpgme-devel json-glib-devel libcap-devel
libostree-devel libseccomp-devel polkit-devel dconf-devel"
depends="bubblewrap"
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=93f2131fd4b5290d66cec534e8372c0e09e7f1c5fc6d1ce557f4fe27b39daa2b
build_options="gir"
case "$XBPS_TARGET_MACHINE" in
x86_64-musl) build_options_default+=" gir" ;;
*-musl) ;;
*) build_options_default+=" gir" ;;
esac
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"
if [ "$build_option_gir" ]; then
vmove usr/share/gir-1.0
fi
}
}