void-packages/srcpkgs/flatpak-builder/template
2021-11-13 22:03:28 +01:00

30 lines
960 B
Bash

# Template file for 'flatpak-builder'
pkgname=flatpak-builder
version=1.2.0
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=dfcb6a3ca38d61e0775b70a469ab505285e129361462df09004e6d4251c246a8
# 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
}