contrib/flatpak/Pkgfile

46 lines
1.3 KiB
Plaintext
Raw Normal View History

2019-06-11 23:45:44 +02:00
# Description: Linux application sandboxing and distribution framework (formerly xdg-app)
2020-06-01 15:37:03 +02:00
# URL: https://flatpak.org
2019-06-11 23:45:44 +02:00
# Maintainer: Tim Biermann, tbier at posteo dot de
# Depends on: appstream appstream-glib bubblewrap libseccomp ostree polkit python3-pyparsing socat
# Optional: dconf docbook-xsl libxslt xdg-desktop-portal xdg-desktop-portal-gtk xdg-desktop-portal-kde
2019-06-11 23:45:44 +02:00
name=flatpak
2024-04-18 19:12:45 +02:00
version=1.15.8
release=1
2019-06-11 23:45:44 +02:00
source=(https://github.com/flatpak/flatpak/releases/download/$version/$name-$version.tar.xz)
build() {
meson setup $name-$version build \
--prefix=/usr \
--libexecdir=lib \
--buildtype=plain \
--wrap-mode nodownload \
-D b_lto=true \
-D b_pie=true \
-D dbus_config_dir=/usr/share/dbus-1/system.d \
-D profile_dir=/etc/profile.d \
-D system_helper_user=flatpak \
-D system_bubblewrap=/usr/bin/bwrap
meson compile -C build
DESTDIR=$PKG meson install -C build
2021-10-10 11:23:12 +02:00
#cd $name-$version
2021-10-10 11:23:12 +02:00
#prt-get isinst libxslt docbook-xsl docbook-dtd || PKGMK_FLATPAK+=' --disable-documentation'
2023-02-23 18:28:24 +01:00
#NOCONFIGURE=1 ./autogen.sh
#./configure $PKGMK_FLATPAK \
# --prefix=/usr \
# --libexecdir=/usr/lib \
# --with-priv-mode=setuid \
# --disable-static \
#sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
#make
#make DESTDIR=$PKG install
2022-06-19 21:23:07 +02:00
2020-06-24 18:41:43 +02:00
rm -fr $PKG/usr/lib/{systemd,sysusers.d}
rm -fr $PKG/usr/share/{fish,locale}
2019-06-11 23:45:44 +02:00
}