be5369a0cb
* fpc is kept at -Np0 ```sh git grep -l '^patch_args=-Np0' "srcpkgs/$1*/template" | while read template; do for p in ${template%/template}/patches/*; do sed -i ' \,^[+-][+-][+-] /dev/null,b /^[*-]\+ [0-9]\+\(,[0-9]\+\)\? [*-]\+$/b s,^[*][*][*] ,&a/, /^--- /{ s,\(^--- \)\(./\)*,\1a/, s,[.][Oo][Rr][Ii][Gg]\([ /]\),\1, s/[.][Oo][Rr][Ii][Gg]$// s/[.]patched[.]\([^.]\)/.\1/ h } /^+++ -/{ g s/^--- a/+++ b/ b } s,\(^+++ \)\(./\)*,\1b/, ' "$p" done sed -i '/^patch_args=/d' $template done ```
52 lines
1.5 KiB
Bash
52 lines
1.5 KiB
Bash
# Template file for 'flatpak'
|
|
pkgname=flatpak
|
|
version=1.10.2
|
|
revision=1
|
|
build_style=gnu-configure
|
|
build_helper="gir"
|
|
configure_args="
|
|
--with-system-bubblewrap
|
|
--with-system-helper-user=_flatpak
|
|
--enable-selinux-module=no
|
|
$(vopt_enable gir introspection)"
|
|
hostmakedepends="bubblewrap gettext glib-devel libxslt pkg-config bison
|
|
python3-parsing docbook docbook-xml docbook-xsl"
|
|
makedepends="appstream-glib-devel gpgme-devel json-glib-devel libcap-devel
|
|
libostree-devel libseccomp-devel polkit-devel dconf-devel fuse-devel
|
|
libsoup-devel"
|
|
depends="bubblewrap gnupg2"
|
|
checkdepends="attr-progs bubblewrap dbus gnupg2 socat which"
|
|
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/raw/master/NEWS"
|
|
distfiles="https://github.com/flatpak/flatpak/releases/download/${version}/flatpak-${version}.tar.xz"
|
|
checksum=db152739d072f8ff299e4e888d8963a1b4538da7b10e0b86525be438f2e1dde4
|
|
|
|
build_options="gir"
|
|
build_options_default="gir"
|
|
|
|
system_accounts="_flatpak"
|
|
|
|
post_patch() {
|
|
vsed -i -e '/cp.*usr.lib.locale.C/d' tests/make-test-runtime.sh
|
|
}
|
|
|
|
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"
|
|
vmove usr/share/gtk-doc
|
|
if [ "$build_option_gir" ]; then
|
|
vmove usr/share/gir-1.0
|
|
fi
|
|
}
|
|
}
|