makedepends=(glib gpgme fuse2 libsoup2 e2fsprogs systemd python-setuptools)

description='Operating system and container binary deployment and upgrades'
url='https://ostree.readthedocs.io/en/latest/'

packager="Great-OS Team"
maintainer="Great-OS Team"

name=libostree
version=2024.10
release=3

source=(https://github.com/ostreedev/ostree/releases/download/v$version/libostree-$version.tar.xz)

build() {
  cd $name-$version

  ./configure --prefix=/usr \
              --with-openssl \
              --with-curl \
              --disable-http2 \
              --with-soup \
              --sysconfdir=/etc \
              --localstatedir=/var

  sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool

  make
  make DESTDIR=$PKG install
}

