# Contributor: André Klitzing # Maintainer: André Klitzing pkgname=ostree pkgver=2023.5 pkgrel=0 pkgdesc="Operating system and container binary deployment and upgrades" url="https://github.com/ostreedev/ostree" arch="all" license="LGPL-2.0-or-later" makedepends=" bison curl-dev e2fsprogs-dev fuse3-dev gpgme-dev gtk-doc libarchive-dev libsoup3-dev libxslt linux-headers openssl-dev>3 xz-dev " checkdepends=" bash coreutils " subpackages=" $pkgname-dev $pkgname-doc $pkgname-dbg $pkgname-grub:grub:noarch $pkgname-bash-completion:bashcomp:noarch " source="https://github.com/ostreedev/ostree/releases/download/v$pkgver/libostree-$pkgver.tar.xz" builddir="$srcdir/lib$pkgname-$pkgver" # todo: fails to make stuff in var/tmp in root options="!check" build() { CFLAGS="$CFLAGS -flto=auto" \ CXXFLAGS="$CXXFLAGS -flto=auto" \ ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --sysconfdir=/etc \ --localstatedir=/var \ --sbindir=/usr/bin \ --libexecdir=/usr/lib \ --enable-gtk-doc \ --disable-static \ --disable-glibtest \ --with-curl \ --with-openssl \ --with-soup3 make } check() { export TMPDIR="$srcdir" make check || { cat test-suite.log return 1 } } package() { make DESTDIR="$pkgdir" install } dev() { default_dev amove usr/lib/libostree/ostree-trivial-httpd } grub() { pkgdesc="GRUB2 integration for OSTree" install_if="$pkgname=$pkgver-r$pkgrel grub" amove etc/grub.d/* amove usr/lib/libostree/grub2-* } bashcomp() { depends="" pkgdesc="Bash completions for $pkgname" install_if="$pkgname=$pkgver-r$pkgrel bash-completion" amove usr/share/bash-completion } sha512sums=" 0bb19f199344d8db7299cf710f2ba0b2657cdcb5b1fc6d85446cef9538b069e470b47fc0c2c1029e12b8b9adb978f32a6f44f48949ff5c97a01051a425a9f2d5 libostree-2023.5.tar.xz "