aboutsummaryrefslogtreecommitdiffstats
path: root/community/flatpak
diff options
context:
space:
mode:
authorAndré Klitzing <aklitzing@gmail.com>2018-09-17 12:14:44 +0200
committerNatanael Copa <ncopa@alpinelinux.org>2018-09-19 10:21:22 +0000
commitecd2579ef716260e389bde6457e3297d026957d5 (patch)
treec732a54af48bd3ee256b909487531bef0d7e49a4 /community/flatpak
parent6ce172033ea152971ef00ce0ff29ff6fb533db25 (diff)
downloadaports-ecd2579ef716260e389bde6457e3297d026957d5.tar.bz2
aports-ecd2579ef716260e389bde6457e3297d026957d5.tar.xz
community/flatpak: move from testing
Diffstat (limited to 'community/flatpak')
-rw-r--r--community/flatpak/APKBUILD53
-rw-r--r--community/flatpak/musl-fixes.patch17
2 files changed, 70 insertions, 0 deletions
diff --git a/community/flatpak/APKBUILD b/community/flatpak/APKBUILD
new file mode 100644
index 0000000000..995c7e6f06
--- /dev/null
+++ b/community/flatpak/APKBUILD
@@ -0,0 +1,53 @@
+# Contributor: André Klitzing <aklitzing@gmail.com>
+# Maintainer: André Klitzing <aklitzing@gmail.com>
+pkgname=flatpak
+pkgver=1.0.1
+pkgrel=0
+pkgdesc="Application deployment framework for desktop apps"
+url="http://flatpak.org"
+arch="all !aarch64"
+license="LGPL-2.1"
+depends="bubblewrap"
+makedepends="glib-dev libarchive-dev libsoup-dev libcap-dev polkit-dev
+ libxau-dev ostree-dev fuse-dev json-glib-dev
+ libgcab-dev appstream-glib-dev
+ libseccomp-dev libxslt-dev gpgme-dev bubblewrap bison"
+subpackages="$pkgname-dev $pkgname-doc $pkgname-lang"
+source="https://github.com/flatpak/$pkgname/releases/download/$pkgver/$pkgname-$pkgver.tar.xz
+ musl-fixes.patch"
+options="suid"
+builddir="$srcdir/$pkgname-$pkgver"
+
+build() {
+ cd "$builddir"
+
+ ./configure \
+ --build=$CBUILD \
+ --host=$CHOST \
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ --localstatedir=/var \
+ --sbindir=/usr/bin \
+ --libexecdir=/usr/lib/$pkgname \
+ --disable-static \
+ --disable-documentation \
+ --with-priv-mode=setuid \
+ --with-system-bubblewrap
+
+ make
+}
+
+check() {
+ cd "$builddir"
+ #make -k check
+ ./flatpak --version
+}
+
+package() {
+ cd "$builddir"
+ make DESTDIR="$pkgdir" install
+ install -D -m644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+
+sha512sums="36d22dbc782d78b7be54113ef4ca5138614e36727795753e74b22bf77d4ef500ab4f31fe60ca6a4dc27939e5b3697f0c6296f4ee5caf1697dc8342e99fe0b4ba flatpak-1.0.1.tar.xz
+9287ed146bf71665aa436a2c2110cc5edc829a7b4a3e3190947580850fe9ecfd2bb6adb015c692af022d425fb5259390fcdcbd402e8b0d12ee5d2c1a1071ed4f musl-fixes.patch"
diff --git a/community/flatpak/musl-fixes.patch b/community/flatpak/musl-fixes.patch
new file mode 100644
index 0000000000..406a06d834
--- /dev/null
+++ b/community/flatpak/musl-fixes.patch
@@ -0,0 +1,17 @@
+--- a/config.h.in
++++ b/config.h.in
+@@ -140,3 +140,14 @@
+
+ /* Define to 1 if you need to in order for `stat' and other things to work. */
+ #undef _POSIX_SOURCE
++
++/* taken from glibc unistd.h and fixes musl */
++#ifndef TEMP_FAILURE_RETRY
++#define TEMP_FAILURE_RETRY(expression) \
++ (__extension__ \
++ ({ long int __result; \
++ do __result = (long int) (expression); \
++ while (__result == -1L && errno == EINTR); \
++ __result; }))
++#endif
++