30 lines
960 B
Bash
30 lines
960 B
Bash
# Template file for 'flatpak-builder'
|
|
pkgname=flatpak-builder
|
|
version=1.1.1
|
|
revision=2
|
|
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=13c5ccc8765f4724ad286a8eff8aad191a417b73a03eab7c3ae53a2e9eb22140
|
|
# 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
|
|
}
|