128 lines
2.8 KiB
Bash
128 lines
2.8 KiB
Bash
# POWER Maintainer: Alexander Baldeck <alex.bldck@gmail.com>
|
|
# Maintainer: David Runge <dvzrv@archlinux.org>
|
|
# Contributor: Jan Alexander Steffens (heftig) <heftig@archlinux.org>
|
|
# Contributor: Mirco Tischler <mt-ml at gmx dot de>
|
|
|
|
pkgname=ostree
|
|
pkgver=2024.9
|
|
pkgrel=1
|
|
pkgdesc="Operating system and container binary deployment and upgrades"
|
|
url="https://ostreedev.github.io/ostree/"
|
|
arch=(x86_64 powerpc64le powerpc64 powerpc riscv64)
|
|
license=(LGPL-2.0-or-later)
|
|
depends=(
|
|
bash
|
|
composefs
|
|
fuse3
|
|
gcc-libs
|
|
glibc
|
|
libgpg-error
|
|
libsodium
|
|
sh
|
|
util-linux
|
|
which # remove after https://github.com/ostreedev/ostree/pull/3154 is merged and released
|
|
zlib
|
|
)
|
|
makedepends=(
|
|
avahi
|
|
curl
|
|
e2fsprogs
|
|
git
|
|
glib2
|
|
glib2-devel
|
|
gobject-introspection
|
|
gpgme
|
|
gtk-doc
|
|
libarchive
|
|
libsoup3
|
|
libxslt
|
|
mkinitcpio
|
|
openssl
|
|
python
|
|
systemd
|
|
xz
|
|
)
|
|
checkdepends=(
|
|
cpio
|
|
elfutils
|
|
gjs
|
|
parallel
|
|
python-yaml
|
|
syslinux
|
|
)
|
|
provides=(libostree-1.so)
|
|
source=(
|
|
git+https://github.com/ostreedev/ostree#tag=v$pkgver
|
|
git+https://github.com/mendsley/bsdiff
|
|
git+https://gitlab.gnome.org/GNOME/libglnx.git
|
|
$pkgname-2023.1-use_fuse3.patch
|
|
)
|
|
b2sums=('15f21fc2e8e58875236c23964a2f9a802e5973405ee7d77d9777d139c2dc30068c960e86bf66d604e632b84895ca18af0a4737d783454f1b8e8321b136d42012'
|
|
'SKIP'
|
|
'SKIP'
|
|
'cfff162120f70995e18ec56454711501391b97456e2a0f34643c9d2a9c2b50b4d76afc2e2fc50ea28e8a773c618215d6cb855b96663f69dc5cc93bc5766f3f28')
|
|
|
|
pkgver() {
|
|
cd $pkgname
|
|
git describe --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g;s/v//g'
|
|
}
|
|
|
|
prepare() {
|
|
cd $pkgname
|
|
|
|
# use fusemount3 (fuse3)
|
|
git apply -3 ../$pkgname-2023.1-use_fuse3.patch
|
|
|
|
git submodule init
|
|
git submodule set-url bsdiff "$srcdir/bsdiff"
|
|
git submodule set-url libglnx "$srcdir/libglnx"
|
|
git -c protocol.file.allow=always submodule update
|
|
|
|
NOCONFIGURE=1 ./autogen.sh
|
|
}
|
|
|
|
build() {
|
|
local configure_options=(
|
|
--disable-static
|
|
--enable-experimental-api
|
|
--enable-gtk-doc
|
|
--libexecdir=/usr/lib
|
|
--localstatedir=/var
|
|
--prefix=/usr
|
|
--sbindir=/usr/bin
|
|
--sysconfdir=/etc
|
|
--with-curl
|
|
--with-dracut=yesbutnoconf
|
|
--with-ed25519-libsodium
|
|
--with-grub2-mkconfig-path=/usr/bin/grub-mkconfig
|
|
--with-mkinitcpio
|
|
--with-modern-grub
|
|
--with-openssl
|
|
)
|
|
|
|
cd $pkgname
|
|
./configure "${configure_options[@]}"
|
|
# prevent overlinking due to libtool
|
|
sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
|
|
make
|
|
}
|
|
|
|
check() {
|
|
make check -k -C $pkgname
|
|
}
|
|
|
|
package() {
|
|
depends+=(
|
|
avahi libavahi-client.so libavahi-common.so libavahi-glib.so
|
|
curl libcurl.so
|
|
glib2 libgio-2.0.so libglib-2.0.so libgobject-2.0.so
|
|
gpgme libgpgme.so
|
|
libarchive libarchive.so
|
|
openssl libcrypto.so
|
|
systemd-libs libsystemd.so
|
|
xz liblzma.so
|
|
)
|
|
|
|
make DESTDIR="$pkgdir" install -C $pkgname
|
|
}
|