contrib/flatpak/Pkgfile

35 lines
1.1 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
2022-06-19 21:23:07 +02:00
# Depends on: appstream appstream-glib bubblewrap libseccomp ostree polkit python3-pyparsing
# Optional: docbook-xsl libxslt xdg-desktop-portal xdg-desktop-portal-gtk xdg-desktop-portal-kde
2019-06-11 23:45:44 +02:00
name=flatpak
2023-02-10 12:57:02 +01:00
version=1.15.2
2019-06-11 23:45:44 +02:00
release=1
source=(https://github.com/flatpak/flatpak/releases/download/$version/$name-$version.tar.xz)
build() {
cd $name-$version
2021-10-10 11:23:12 +02:00
2023-02-10 12:57:02 +01:00
prt-get isinst libxslt docbook-xsl docbook-dtd || PKGMK_FLATPAK+=' --disable-documentation'
2021-10-10 11:23:12 +02:00
2020-12-22 15:24:37 +01:00
./configure $PKGMK_FLATPAK \
2019-06-11 23:45:44 +02:00
--prefix=/usr \
--libexecdir=/usr/lib \
--with-system-bubblewrap \
--with-priv-mode=setuid \
--with-profile-dir=/etc/profile.d \
--with-dbus-config-dir=/usr/share/dbus-1/system.d \
--with-system-helper-user=flatpak \
2020-12-22 15:24:37 +01:00
--disable-static \
2019-06-11 23:45:44 +02:00
--disable-nls
sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
2022-06-19 21:23:07 +02:00
2019-06-11 23:45:44 +02:00
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/{gtk-doc,doc,selinux,fish}
2019-06-11 23:45:44 +02:00
}