diff options
Diffstat (limited to 'desktop/flatpak')
-rw-r--r-- | desktop/flatpak/README | 72 | ||||
-rw-r--r-- | desktop/flatpak/flatpak.SlackBuild | 37 | ||||
-rw-r--r-- | desktop/flatpak/flatpak.info | 8 |
3 files changed, 63 insertions, 54 deletions
diff --git a/desktop/flatpak/README b/desktop/flatpak/README index 26feb68fde..e96b6fbe51 100644 --- a/desktop/flatpak/README +++ b/desktop/flatpak/README @@ -1,49 +1,51 @@ -Flatpak - Flatpak is the new framework for desktop applications on Linux -Distributing applications on Linux is a pain: different distributions in -multiple versions, each with their own versions of libraries and packaging -formats. Flatpak is here to change all that. It allows the same app to be -installed on different Linux distributions, including different versions. And -it has been designed from the ground up with security in mind, so that apps -are isolated from each other and from the host system. +Distributing applications on Linux is a pain: different distributions +in multiple versions, each with their own versions of libraries and +packaging formats. Flatpak is here to change all that. It allows the +same app to be installed on different Linux distributions, including +different versions. And it has been designed from the ground up with +security in mind, so that apps are isolated from each other and from +the host system. You can find many apps already available on https://flathub.org/ Add flathub for system and your user's home folder with: -``` -sudo flatpak remote-add --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo -flatpak --user remote-add --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo -``` +sudo flatpak remote-add --if-not-exists flathub \ + https://dl.flathub.org/repo/flathub.flatpakrepo +flatpak --user remote-add --if-not-exists flathub \ + https://dl.flathub.org/repo/flathub.flatpakrepo + +Apps that require pulse audio (like steam, skype, etc) need +PULSE_SERVER environment variable to be set. This is not set for most +shells in slackware by default. One way I found to set this is: -Apps that require pulse audio (like steam, skype, etc) need PULSE_SERVER -environment variable to be set. This is not set for most shells in slackware -by default. One way I found to set this is: -``` export `xprop -root -notype PULSE_SERVER | tr -d ' '` -``` -A cleaner approach is to run `start-pulseaudio-x11` and then `pax11publish -i` -so the correct PULSE_SERVER variable is exported. Adding these two commands to -your ~/.xsession would be useful. - -Some of the examples from http://flatpak.org/#users are relying on polkit -helpers, that expect a user in the 'wheel' group to have privileges for, but -default polkit admin rule for slackware is just the root user. -So, if you run a command like: -``` + +A cleaner approach is to run `start-pulseaudio-x11` and then +`pax11publish -i` so the correct PULSE_SERVER variable is +exported. Adding these two commands to your ~/.xsession would be +useful. + +Some of the examples from http://flatpak.org/#users are relying +on polkit helpers, that expect a user in the 'wheel' group to have +privileges for, but default polkit admin rule for slackware is just +the root user. So, if you run a command like: + flatpak remote-add --from gnome https://sdk.gnome.org/gnome.flatpakrepo -flatpak remote-add --from gnome-apps https://sdk.gnome.org/gnome-apps.flatpakrepo -``` -as a limited user, you will get a polkit prompt for root's password. This is -because the default location for establishing these repos is in -`/var/lib/flatpak` and requires admin privileges. +flatpak remote-add --from gnome-apps \ + https://sdk.gnome.org/gnome-apps.flatpakrepo + +as a limited user, you will get a polkit prompt for root's +password. This is because the default location for establishing these +repos is in `/var/lib/flatpak` and requires admin privileges. -You can optionally add the flag `--user` to flatpak commands, and it will -instead manage the repos in `~/.local/share/flatpak`. +You can optionally add the flag `--user` to flatpak commands, and it +will instead manage the repos in `~/.local/share/flatpak`. There are examples of flatpak runtimes and applications on their wiki: https://github.com/flatpak/flatpak/wiki/Examples -They too have desktop launchers search by desktops like KDE and XFCE, it will -require a logout, as /etc/profile.d/flatpak.sh will need to be sourced. +They too have desktop launchers search by desktops like KDE and XFCE, +it will require a logout, as /etc/profile.d/flatpak.sh will need to +be sourced. diff --git a/desktop/flatpak/flatpak.SlackBuild b/desktop/flatpak/flatpak.SlackBuild index 3f6d833f40..8c9eba3f1e 100644 --- a/desktop/flatpak/flatpak.SlackBuild +++ b/desktop/flatpak/flatpak.SlackBuild @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # Slackware build script for flatpak @@ -22,10 +22,16 @@ # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# 20220307 bkw: Modified by SlackBuilds.org, BUILD=2: +# - remove useless INSTALL and ABOUT-NLS from doc dir. + +cd $(dirname $0) ; CWD=$(pwd) + PRGNAM=flatpak -VERSION=${VERSION:-1.4.3} +VERSION=${VERSION:-1.12.7} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} if [ -z "$ARCH" ]; then case "$( uname -m )" in @@ -35,7 +41,11 @@ if [ -z "$ARCH" ]; then esac fi -CWD=$(pwd) +if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then + echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE" + exit 0 +fi + TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} @@ -65,9 +75,9 @@ cd $PRGNAM-$VERSION chown -R root:root . find -L . \ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ - -o -perm 511 \) -exec chmod 755 {} \; -o \ + -o -perm 511 \) -exec chmod 755 {} \+ -o \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ - -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; + -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \+ CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ @@ -82,20 +92,17 @@ CXXFLAGS="$SLKCFLAGS" \ --with-system-bubblewrap make -make install DESTDIR=$PKG +make install-strip DESTDIR=$PKG -chmod +x $PKG/etc/profile.d/flatpak.sh +gzip -9 $PKG/usr/man/man*/* -find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \ - | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true +# Don't ship .la files: +rm -f $PKG/{,usr/}lib${LIBDIRSUFFIX}/*.la -find $PKG/usr/man -type f -exec gzip -9 {} \; -for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done +chmod +x $PKG/etc/profile.d/flatpak.sh mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a \ - README.md COPYING INSTALL NEWS ABOUT-NLS \ - $PKG/usr/doc/$PRGNAM-$VERSION +cp -a README.md COPYING NEWS $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/README > $PKG/usr/doc/$PRGNAM-$VERSION/README.SBo cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild @@ -104,4 +111,4 @@ cat $CWD/slack-desc > $PKG/install/slack-desc cat $CWD/doinst.sh > $PKG/install/doinst.sh cd $PKG -/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE diff --git a/desktop/flatpak/flatpak.info b/desktop/flatpak/flatpak.info index 7fbcd5bd55..04979fe208 100644 --- a/desktop/flatpak/flatpak.info +++ b/desktop/flatpak/flatpak.info @@ -1,10 +1,10 @@ PRGNAM="flatpak" -VERSION="1.4.3" +VERSION="1.12.7" HOMEPAGE="https://flatpak.org/" -DOWNLOAD="https://github.com/flatpak/flatpak/releases/download/1.4.3/flatpak-1.4.3.tar.xz" -MD5SUM="dbf49c644246a2a8f043d9dd93c03a4f" +DOWNLOAD="https://github.com/flatpak/flatpak/releases/download/1.12.7/flatpak-1.12.7.tar.xz" +MD5SUM="07d32580019572d5952cb0cadb073493" DOWNLOAD_x86_64="" MD5SUM_x86_64="" -REQUIRES="bubblewrap ostree appstream-glib json-glib libseccomp xdg-desktop-portal-gtk" +REQUIRES="bubblewrap ostree appstream-glib xdg-desktop-portal-gtk" MAINTAINER="Vincent Batts" EMAIL="vbatts@hashbangbash.com" |