contrib/flatpak/Pkgfile

33 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
# Depends on: appstream-glib brotli bubblewrap json-glib 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
version=1.12.7
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
2021-09-01 18:52:40 +02:00
prt-get isinst libxslt docbook-xsl || 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
make
make DESTDIR=$PKG install
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
}