aboutsummaryrefslogtreecommitdiffstats
path: root/testing
diff options
context:
space:
mode:
authorAndré Klitzing <aklitzing@gmail.com>2017-09-13 15:25:28 +0200
committerNatanael Copa <ncopa@alpinelinux.org>2017-09-18 14:06:42 +0000
commit5369c8c2eed89750699f5c99877c51e9d00f8865 (patch)
tree7addbd0c360ecbe6395665b90b55c470ae0505a1 /testing
parent5bed1fdcdd55f8fae4e693c8b3299c61aa941404 (diff)
downloadaports-5369c8c2eed89750699f5c99877c51e9d00f8865.tar.bz2
aports-5369c8c2eed89750699f5c99877c51e9d00f8865.tar.xz
testing/flatpak-builder: new aport
Diffstat (limited to 'testing')
-rw-r--r--testing/flatpak-builder/APKBUILD48
-rw-r--r--testing/flatpak-builder/musl-fixes.patch17
2 files changed, 65 insertions, 0 deletions
diff --git a/testing/flatpak-builder/APKBUILD b/testing/flatpak-builder/APKBUILD
new file mode 100644
index 0000000000..4260a65fe6
--- /dev/null
+++ b/testing/flatpak-builder/APKBUILD
@@ -0,0 +1,48 @@
+# Contributor: André Klitzing <aklitzing@gmail.com>
+# Maintainer: André Klitzing <aklitzing@gmail.com>
+pkgname=flatpak-builder
+pkgver=0.9.11
+pkgrel=0
+pkgdesc="Tool to build flatpaks from source"
+url="http://flatpak.org"
+arch="all !aarch64"
+license="LGPL-2.1"
+makedepends="flatpak-dev glib-dev libsoup-dev json-glib-dev
+ elfutils-dev libdwarf-dev libcap-dev"
+subpackages="$pkgname-doc"
+source="https://github.com/flatpak/$pkgname/releases/download/$pkgver/$pkgname-$pkgver.tar.xz
+ musl-fixes.patch"
+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-dwarf-header=/usr/include/libdwarf
+
+ make
+}
+
+check() {
+ cd "$builddir"
+ #make -k check
+ ./flatpak-builder --version
+}
+
+package() {
+ cd "$builddir"
+ make DESTDIR="$pkgdir" install
+ install -D -m644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+
+sha512sums="6056fd8b797ba1bfdc07bbe757ff99a81a5cd6916fbc70cc0f2e30120718c27f2ff0ef24ad565a7044c343e4550131950e3338396b4ff47c3417bd7d5fc8d06e flatpak-builder-0.9.11.tar.xz
+9287ed146bf71665aa436a2c2110cc5edc829a7b4a3e3190947580850fe9ecfd2bb6adb015c692af022d425fb5259390fcdcbd402e8b0d12ee5d2c1a1071ed4f musl-fixes.patch"
diff --git a/testing/flatpak-builder/musl-fixes.patch b/testing/flatpak-builder/musl-fixes.patch
new file mode 100644
index 0000000000..406a06d834
--- /dev/null
+++ b/testing/flatpak-builder/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
++