desktop/flatpak: split -builder into its own pkg.

Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
Vincent Batts 2018-11-11 17:54:23 -05:00 committed by Willy Sudiarto Raharjo
parent 6315745ea9
commit 23846f533c
No known key found for this signature in database
GPG key ID: 887B8374D7333381

View file

@ -24,9 +24,7 @@
PRGNAM=flatpak
VERSION=${VERSION:-1.0.4}
BUILDER_PRGNAM=${PRGNAM}-builder
BUILDER_VERSION=${BUILDER_VERSION:-1.0.1}
BUILD=${BUILD:-2}
BUILD=${BUILD:-3}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@ -86,33 +84,6 @@ 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 \