void-packages/srcpkgs/flatpak-builder/template

32 lines
1.0 KiB
Bash

# Template file for 'flatpak-builder'
pkgname=flatpak-builder
version=1.2.3
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"
changelog="https://github.com/flatpak/flatpak-builder/raw/main/NEWS"
distfiles="https://github.com/flatpak/flatpak-builder/releases/download/${version}/flatpak-builder-${version}.tar.xz"
checksum=e257825a47f7a3e71e30fb0f80f2d9ac6e4801f746f552dfaf0e564e3ee351c8
# 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
}