summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 0273b8b831acbd12120eb5840c02fe3ebe3debd8 (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
37
38
39
40
41
42
43
# Maintainer: samarthj <dev@samarthj.com>
# Contributor: Nazar Mishturak <nazarmx@gmail.com"
# Contributor: hexchian <i at hexchain dot org>

# shellcheck disable=2034,2154

pkgname=crun-git
_pkgname=crun
pkgver=0.21.r15.g360f5d0
pkgrel=1
pkgdesc="A fast and lightweight fully featured OCI runtime and C library for running containers"
url="https://github.com/containers/crun"
arch=('any')
depends=('yajl' 'systemd-libs' 'libcap' 'libseccomp')
makedepends=('libtool' 'python3' 'go-md2man' 'git')
provides=("$_pkgname")
conflicts=("$_pkgname")
url="https://github.com/containers/$_pkgname.git"
license=('GPL2')
source=("git+$url")
sha256sums=('SKIP')

prepare() {
  cd "$srcdir/$_pkgname" || exit 1
  git submodule update --recursive
}

pkgver() {
  cd "$srcdir/$_pkgname" || exit 1
  git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
  cd "$srcdir/$_pkgname" || exit 1
  ./autogen.sh
  ./configure --prefix=/usr --enable-dynamic
  make
}

package() {
  cd "$srcdir/$_pkgname" || exit 1
  make DESTDIR="$pkgdir" install
}