103 lines
3 KiB
Bash
103 lines
3 KiB
Bash
#!/usr/bin/bash
|
|
# JOBoRun : Jwm OpenBox Obarun RUNit
|
|
# Maintainer : Joe Bo Run <joborun@disroot.org>
|
|
# PkgSource : url="https://gittea.disroot.org/joborun-pkg/jobextra/$pkgname"
|
|
# Website : https://pozol.eu
|
|
#-----------------------------------------| DESCRIPTION |---------------------------------------
|
|
|
|
#_name=libostree
|
|
pkgname=ostree
|
|
pkgver=2023.7
|
|
pkgrel=01
|
|
pkgdesc="Operating system and container binary deployment and upgrades - w/o systemd & avahi"
|
|
url="https://ostreedev.github.io/ostree/"
|
|
depends=(bash fuse3 gcc-libs glibc libgpg-error libsodium sh util-linux zlib)
|
|
makedepends=(curl e2fsprogs git glib2 gobject-introspection gpgme
|
|
gtk-doc libarchive libsoup libxslt mkinitcpio openssl python xz)
|
|
#checkdepends=(cpio elfutils gjs parallel python-yaml syslinux)
|
|
checkdepends=(cpio elfutils gjs parallel python-yaml syslinux)
|
|
_commit=722ba6238dc82c906506a3941689d08e4cd154ae # tags/v2023.7
|
|
source=(git+https://github.com/ostreedev/ostree#tag=$_commit
|
|
git+https://github.com/mendsley/bsdiff
|
|
git+https://gitlab.gnome.org/GNOME/libglnx.git
|
|
$pkgname-2023.1-use_fuse3.patch)
|
|
provides=(libostree-1.so)
|
|
# upstream ticket about chain of trust:
|
|
# https://github.com/ostreedev/ostree/issues/2349
|
|
|
|
prepare() {
|
|
cd $pkgname
|
|
|
|
# use fusemount3 (fuse3)
|
|
git apply -3 ../$pkgname-2023.1-use_fuse3.patch
|
|
|
|
# remove failing test: https://github.com/ostreedev/ostree/issues/2790
|
|
sed -e '/test-signed-pull-summary.sh/d' -i Makefile-tests.am
|
|
|
|
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() {
|
|
cd $pkgname
|
|
|
|
./configure \
|
|
--prefix=/usr \
|
|
--sysconfdir=/etc \
|
|
--localstatedir=/var \
|
|
--sbindir=/usr/bin \
|
|
--libexecdir=/usr/lib \
|
|
--disable-static \
|
|
--enable-experimental-api \
|
|
--enable-gtk-doc \
|
|
--with-grub2-mkconfig-path=/usr/bin/grub-mkconfig \
|
|
--with-modern-grub \
|
|
--with-curl \
|
|
--with-dracut=yesbutnoconf \
|
|
--with-ed25519-libsodium \
|
|
--with-mkinitcpio \
|
|
--with-openssl \
|
|
--disable-avahi
|
|
|
|
# circumvent overlinking
|
|
sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
|
|
make
|
|
}
|
|
|
|
#check() {
|
|
# make check -k -C $pkgname
|
|
#}
|
|
|
|
package() {
|
|
depends+=(
|
|
curl libcurl.so
|
|
glib2 libgio-2.0.so libglib-2.0.so libgobject-2.0.so
|
|
gpgme libgpgme.so
|
|
libarchive libarchive.so
|
|
libsoup
|
|
openssl libcrypto.so
|
|
xz liblzma.so
|
|
)
|
|
|
|
make DESTDIR="$pkgdir" install -C $pkgname
|
|
install -vDm 644 $pkgname/COPYING -t "$pkgdir/usr/share/licenses/$pkgname/"
|
|
}
|
|
|
|
#---- arch license gpg-key & sha256sums ----
|
|
|
|
arch=(x86_64)
|
|
|
|
license=(LGPL-2.0-or-later)
|
|
|
|
validpgpkeys=('1CEC7A9DF7DA85ABEF843DC0A866D7CCAE087291') # Colin Walters <walters@redhat.com>
|
|
|
|
sha256sums=(SKIP
|
|
SKIP
|
|
SKIP
|
|
6cc1e10db1f8c744eec5d128ad7bcd5aa92a8da167784f6727d832c9a4c545bb) # ostree-2023.1-use_fuse3.patch
|
|
|
|
## 2608b32a8917aefba24035bd342f44f2a1f816af19c6b149906c70b195c69293 ostree-2023.7-01-x86_64.pkg.tar.lz
|