aboutsummaryrefslogtreecommitdiffstats
path: root/community/ostree
diff options
context:
space:
mode:
authorAndré Klitzing <aklitzing@gmail.com>2018-04-06 21:06:02 +0200
committerTimo Teräs <timo.teras@iki.fi>2018-04-09 10:39:53 +0000
commitbeb6d9e71696e7432cb4e73a423748cb286ade1d (patch)
tree5749e27f7656105873ea5ff527f19256eb989261 /community/ostree
parent0f18639a70e89401ef7a68fe61478105b38e5829 (diff)
downloadaports-beb6d9e71696e7432cb4e73a423748cb286ade1d.tar.bz2
aports-beb6d9e71696e7432cb4e73a423748cb286ade1d.tar.xz
community/ostree: move from testing
Diffstat (limited to 'community/ostree')
-rw-r--r--community/ostree/APKBUILD43
-rw-r--r--community/ostree/musl-fixes.patch18
2 files changed, 61 insertions, 0 deletions
diff --git a/community/ostree/APKBUILD b/community/ostree/APKBUILD
new file mode 100644
index 0000000000..ee9d908657
--- /dev/null
+++ b/community/ostree/APKBUILD
@@ -0,0 +1,43 @@
+# Contributor: André Klitzing <aklitzing@gmail.com>
+# Maintainer: André Klitzing <aklitzing@gmail.com>
+pkgname=ostree
+pkgver=2018.4
+pkgrel=0
+pkgdesc="Operating system and container binary deployment and upgrades"
+url="https://github.com/ostreedev/ostree"
+arch="all"
+license="GPL"
+makedepends="bison glib-dev xz-dev libarchive-dev e2fsprogs-dev
+ libsoup-dev gpgme-dev fuse-dev linux-headers"
+subpackages="$pkgname-dev $pkgname-doc"
+source="https://github.com/ostreedev/ostree/releases/download/v$pkgver/libostree-$pkgver.tar.xz
+ musl-fixes.patch
+ "
+options="!check"
+builddir="$srcdir/lib$pkgname-$pkgver"
+
+build() {
+ cd "$builddir"
+
+ ./configure \
+ --build=$CBUILD \
+ --host=$CHOST \
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ --localstatedir=/var \
+ --sbindir=/usr/bin \
+ --libexecdir=/usr/lib \
+ --disable-static \
+ --disable-glibtest
+
+ make
+}
+
+package() {
+ cd "$builddir"
+ make DESTDIR="$pkgdir" install
+ install -D -m644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+
+sha512sums="a60613ac576fc86e448f4672017127fee83a36b2694a7888efb80b055291d17a613197525f4a3213febdc9527dfca2cd6d1337ac00a54afd2c41529a095987b4 libostree-2018.4.tar.xz
+539f5020f3380e841372f80c60c71c803ccfeffb719f1b83361b75557022c61d9cd29d9cd36929426420644def9de91fd92f5dd6923352f2ae6e1dd4b676de8c musl-fixes.patch"
diff --git a/community/ostree/musl-fixes.patch b/community/ostree/musl-fixes.patch
new file mode 100644
index 0000000000..ce4a5e6dfb
--- /dev/null
+++ b/community/ostree/musl-fixes.patch
@@ -0,0 +1,18 @@
+--- a/config.h.in
++++ b/config.h.in
+@@ -148,3 +148,15 @@
+
+ /* 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
++
++