contrib/ostree/Pkgfile

36 lines
1.1 KiB
Plaintext
Raw Normal View History

2019-06-11 23:45:48 +02:00
# Description: Operating system and container binary deployment and upgrades
# URL: https://ostree.readthedocs.org/en/latest/
# Maintainer: Tim Biermann, tbier at posteo dot de
# Depends on: fuse3 gpgme grub2 keyutils libsoup
# Optional: avahi brotli docbook-xsl dracut libsodium
2019-06-11 23:45:48 +02:00
name=ostree
2024-05-17 21:00:33 +02:00
version=2024.6
2023-12-06 18:34:04 +01:00
release=1
2019-06-11 23:45:48 +02:00
source=(https://github.com/ostreedev/ostree/releases/download/v$version/libostree-$version.tar.xz)
build() {
prt-get isinst avahi || PKGMK_OSTREE+=' --without-avahi'
prt-get isinst docbook-xsl && PKGMK_OSTREE+=' --enable-man=yes' || PKGMK_OSTREE+=' --enable-man=no'
prt-get isinst dracut && PKGMK_OSTREE+=' --with-dracut=yesbutnoconf'
prt-get isinst libsodium && PKGMK_OSTREE+=' --with-ed25519-libsodium'
2022-03-05 13:40:15 +01:00
2019-06-11 23:45:48 +02:00
cd lib$name-$version
./configure $PKGMK_OSTREE \
--prefix=/usr \
2019-06-11 23:45:48 +02:00
--libexecdir=/usr/lib/$name \
--with-openssl \
--with-modern-grub \
--with-grub2-mkconfig-path=/usr/bin/grub-mkconfig \
2019-06-11 23:45:48 +02:00
--enable-experimental-api \
--disable-static
make
make DESTDIR=$PKG install
2022-03-05 13:40:15 +01:00
install -d -m0755 $PKG/etc
mv $PKG/usr/etc/grub.d $PKG/etc
2022-03-05 13:40:15 +01:00
rm -fr $PKG/usr/share/ostree/trusted.gpg.d/README-gpg
2019-06-11 23:45:48 +02:00
}