summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: cd6e908eb3e53324e761337c64c8c89f1d472ee4 (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
#Maintainer: Mariszo <mariszo@itfinger.com>
#Contributor: Mariszo <mariszo@itfinger.com>

pkgname=railcar-git
pkgver=1.0.4.47.bedd974597
pkgrel=1
pkgdesc="Rust implementation of the Open Containers Initiative oci-runtime"
url="https://github.com/oracle/railcar"
depends=('gcc-libs' 'libseccomp')
makedepends=('git' 'rustup')
conflicts=('railcar')
arch=('x86_64')
provides=('railcar')
license=("APACHE")
source=('git+https://github.com/oracle/railcar.git')
sha512sums=('SKIP')
 
prepare() {
	rustup toolchain install stable-$CARCH-unknown-linux-gnu
	rustup default stable-$CARCH-unknown-linux-gnu
	rustup target install $CARCH-unknown-linux-musl

	cargo install cargo-when --force
}

build() {
	cd railcar
	./build.sh
}

package() {
	 install -D -m 0755 railcar/railcar "$pkgdir/usr/bin/railcar"
}