# Description: A fast and lightweight fully featured OCI runtime and C library for running containers
# URL: https://github.com/containers/crun
# Maintainer: Tim Biermann, tbier at posteo dot de
# Depends on: criu json-c libseccomp

name=crun
version=1.28
release=1
source=(https://github.com/containers/crun/releases/download/$version/crun-$version.tar.gz)

build() {
  cd $name-$version

  sed -i \
    's!^crun_LDADD = libcrun.la !crun_LDADD = libcrun.la libocispec/libocispec.la !' \
    Makefile.am
  autoreconf -fvi
  ./configure \
    --prefix=/usr \
    --enable-shared \
    --enable-dynamic \
    --with-python-bindings \
    --disable-systemd
  make
  make DESTDIR=$PKG install
}
