blob: 68bd25243fff659a5801946109c0c391cdd5bb7d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
# Maintainer: Alireza S.N. <alireza6677 at gmail dot com>
pkgname=krunvm-git
pkgver=v0.2.3.r16.g5494d84
pkgrel=1
pkgdesc="Create microVMs from OCI images"
arch=("x86_64")
url="https://github.com/containers/krunvm"
license=("GPL2")
depends=("libkrun" "buildah" "podman")
makedepends=("cargo" "git" "gcc" "asciidoctor")
provides=("krunvm")
conflicts=("krunvm")
source=("${pkgname}::git+https://github.com/containers/krunvm")
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
}
package() {
cd "${pkgname}"
make install PREFIX="$pkgdir/usr"
if [ -d "$pkgdir/usr/lib64" ]; then
mv "$pkgdir/usr/lib64" "$pkgdir/usr/lib"
fi
}
|