refer to this topic : https://forum.obarun.org/viewtopic.php?id=455
Ok found the trouble, hidden system:D dependency. flatpak depend of ostree and ostree have system:D makedepends dependency declaration.
So, you need first to rebuild ostree without system:D support, then install it , then build flatpak
Here is the PKGBUILD for both :
Ok found the trouble, hidden system:D dependency. flatpak depend of ostree and ostree have system:D makedepends dependency declaration.
So, you need first to rebuild ostree without system:D support, then install it , then build flatpak
Here is the PKGBUILD for both :
pkgname=ostree
pkgver=2017.14
pkgrel=2
pkgdesc="Operating system and container binary deployment and upgrades"
url="https://ostree.readthedocs.org/en/latest/"
arch=(x86_64)
license=(GPL)
depends=(glib2 xz zlib libsoup gpgme libarchive fuse2 util-linux mkinitcpio openssl)
makedepends=(e2fsprogs gobject-introspection gtk-doc libxslt git
python2)
checkdepends=(parallel syslinux gjs cpio elfutils)
_commit=b0f9a298165a99d5621073bd9e1b10f13058e838 # tags/v2017.14^0
source=("git+https://github.com/ostreedev/ostree# commit=$_commit"
"git+https://github.com/mendsley/bsdiff"
"git+https://git.gnome.org/browse/libglnx")
sha256sums=('SKIP'
'SKIP'
'SKIP')
prepare() {
cd $pkgname
git submodule init
git config --local submodule.bsdiff.url "$srcdir/bsdiff"
git config --local submodule.libglnx.url "$srcdir/libglnx"
git submodule update
find . -name '*.py' -exec sed -i '1s/python$/&2/' {} +
NOCONFIGURE=1 ./autogen.sh
}
pkgver() {
cd $pkgname
git describe --tags | sed 's/^v//;s/-/+/g'
}
build() {
cd $pkgname
export gcc=/usr/bin/gcc
./configure \
--prefix=/usr \
--sysconfdir=/etc \
--localstatedir=/var \
--sbindir=/usr/bin \
--libexecdir=/usr/lib \
--with-mkinitcpio \
--with-openssl \
--with-builtin-grub2-mkconfig \
--enable-experimental-api \
--disable-static \
--enable-gtk-doc \
--without-systemdsystemunitdir \
--without-systemdsystemgeneratordir
sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
make
}
check() {
cd $pkgname
make check || :
}
package() {
cd $pkgname
make DESTDIR="$pkgdir" install
}
pkgname=flatpak
pkgver=0.10.2.1
pkgrel=3
pkgdesc="Application deployment framework for desktop apps"
url="http://flatpak.org"
arch=(x86_64)
license=(LGPL2.1)
depends=(dbus glib2 libsoup polkit libxau ostree fuse json-glib libseccomp libarchive
python bubblewrap appstream-glib)
makedepends=(intltool gobject-introspection gtk-doc git docbook-xsl xmlto)
checkdepends=(valgrind)
install=flatpak.install
_commit=35c9eafc9e10f054872c549a1200450026f36b6b # tags/0.10.2.1^0
source=("git+https://github.com/flatpak/flatpak# commit=$_commit"
"git+https://github.com/projectatomic/bubblewrap"
"git+https://git.gnome.org/browse/libglnx"
'flathub.flatpakrepo')
sha256sums=('SKIP'
'SKIP'
'SKIP'
'3371dd250e61d9e1633630073fefda153cd4426f72f4afa0c3373ae2e8fea03a')
validpgpkeys=('6DD4217456569BA711566AC7F06E8FDE7B45DAAC') # Eric Vidal <eric@ obarun.org>
prepare() {
cd $pkgname
git submodule init
git config --local submodule.bubblewrap.url "$srcdir/bubblewrap"
git config --local submodule.libglnx.url "$srcdir/libglnx"
git submodule update
# https://github.com/flatpak/flatpak/issues/267
sed -i '/locale\/C\./d' tests/make-test-runtime.sh
NOCONFIGURE=1 ./autogen.sh
}
pkgver() {
cd $pkgname
git describe --tags | sed 's/-/+/g'
}
build() {
cd $pkgname
export PYTHONPATH="/usr/share/glib-2.0"
./configure \
--prefix=/usr \
--sysconfdir=/etc \
--localstatedir=/var \
--sbindir=/usr/bin \
--libexecdir=/usr/lib/$pkgname \
--disable-static \
--enable-gtk-doc \
--with-system-bubblewrap \
--with-priv-mode=setuid \
--with-dbus-config-dir=/usr/share/dbus-1/system.d \
--without-systemduserunitdir \
--without-systemdsystemunitdir
sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
make
}
check() {
cd $pkgname
# Xattr tests fail on tmpfs
make -k check || :
}
package() {
depends+=(xdg-desktop-portal)
cd $pkgname
make DESTDIR="$pkgdir" install
install -Dm644 /dev/stdin "$pkgdir/etc/profile.d/flatpak-bindir.sh" <<END
if [ -d "\$HOME" ] && [ -d "\$HOME/.local/share/flatpak/exports/bin" ]; then
PATH="\$PATH:\$HOME/.local/share/flatpak/exports/bin"
fi
if [ -d /var/lib/flatpak/exports/bin ]; then
PATH="\$PATH:/var/lib/flatpak/exports/bin"
fi
END
install -Dm644 "$srcdir/flathub.flatpakrepo" \
"$pkgdir/usr/share/flatpak/flathub.flatpakrepo"
# Fixup mode to match polkit
install -d -o root -g 102 -m 750 "$pkgdir/usr/share/polkit-1/rules.d"
}