# Maintainer: Alireza S.N. pkgname=libkrunfw-git pkgver=v4.0.0.r0.g8a71842 pkgrel=1 pkgdesc="A dynamic library bundling the guest payload consumed by libkrun" arch=("x86_64") url="https://github.com/containers/libkrunfw" license=("GPL2") depends=("bc") makedepends=("cargo" "git" "gcc" "python-pyelftools") provides=("libkrunfw") conflicts=("libkrunfw") source=("${pkgname}::git+https://github.com/containers/libkrunfw") md5sums=('SKIP') pkgver() { cd "${pkgname}" ( set -o pipefail git describe --tags --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' || printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" ) } build() { cd "${pkgname}" make -j4 } package() { cd "${pkgname}" make install PREFIX="$pkgdir/usr" if [ -d "$pkgdir/usr/lib64" ]; then mv "$pkgdir/usr/lib64" "$pkgdir/usr/lib" fi }