void-packages/srcpkgs/flatpak-builder/template
2022-01-22 09:40:42 +01:00

30 lines
960 B
Bash

# Template file for 'flatpak-builder'
pkgname=flatpak-builder
version=1.2.2
revision=1
build_style=gnu-configure
hostmakedepends="pkg-config xmlto"
makedepends="flatpak-devel json-glib-devel libcap-devel libsoup-devel
libyaml-devel libcurl-devel"
depends="elfutils"
short_desc="Tool to build flatpaks from source"
maintainer="Enno Boland <gottox@voidlinux.org>"
license="LGPL-2.1-or-later"
homepage="https://github.com/flatpak/flatpak-builder"
distfiles="${homepage}/releases/download/${version}/${pkgname}-${version}.tar.xz"
checksum=89fda68e537c1e9de02352690bd89c3217a729164558d35f35b08f79ad84e03e
# Tests expects a Debian derivate hosts to build a flatpak container from.
make_check=no
if [ "$CROSS_BUILD" ]; then
hostmakedepends+=" flatpak-devel"
fi
if [ "$XBPS_TARGET_LIBC" = "musl" ]; then
makedepends+=" musl-legacy-compat"
fi
post_patch() {
if [ "$XBPS_TARGET_LIBC" = "musl" ]; then
patch -Np1 < $FILESDIR/hard-disable-rofiles-fuse.patch
fi
}