diff options
Diffstat (limited to 'desktop/flatpak/flatpak.SlackBuild')
-rw-r--r-- | desktop/flatpak/flatpak.SlackBuild | 35 |
1 files changed, 32 insertions, 3 deletions
diff --git a/desktop/flatpak/flatpak.SlackBuild b/desktop/flatpak/flatpak.SlackBuild index ca29414539..8793724e17 100644 --- a/desktop/flatpak/flatpak.SlackBuild +++ b/desktop/flatpak/flatpak.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for flatpak -# Copyright 2017 Vincent Batts <vbatts@hashbangbash.com> +# Copyright 2017, 2018 Vincent Batts <vbatts@hashbangbash.com> # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -23,8 +23,10 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=flatpak -VERSION=${VERSION:-0.11.7} -BUILD=${BUILD:-1} +VERSION=${VERSION:-1.0.4} +BUILDER_PRGNAM=${PRGNAM}-builder +BUILDER_VERSION=${BUILDER_VERSION:-1.0.1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} if [ -z "$ARCH" ]; then @@ -84,6 +86,33 @@ CXXFLAGS="$SLKCFLAGS" \ make make install DESTDIR=$PKG +cd $TMP +rm -rf ${BUILDER_PRGNAM}-${BUILDER_VERSION} +tar xvf $CWD/${BUILDER_PRGNAM}-${BUILDER_VERSION}.tar.xz +cd ${BUILDER_PRGNAM}-${BUILDER_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 \ + \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ + -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; + +CFLAGS="$SLKCFLAGS" \ +CXXFLAGS="$SLKCFLAGS" \ +./configure \ + --prefix=/usr \ + --libdir=/usr/lib${LIBDIRSUFFIX} \ + --sysconfdir=/etc \ + --localstatedir=/var \ + --mandir=/usr/man \ + --docdir=/usr/doc/$PRGNAM-$VERSION \ + --build=$ARCH-slackware-linux \ + --with-system-bubblewrap + +make +make install DESTDIR=$PKG + chmod +x $PKG/etc/profile.d/flatpak.sh find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \ |