diff options
author | Mariszo | 2017-11-10 23:09:18 +0100 |
---|---|---|
committer | Mariszo | 2017-11-10 23:09:18 +0100 |
commit | 15a441d8f490296268af9d0e8b2f0b2c8bd24e7e (patch) | |
tree | 2340e5b5e761304cf9296be46da5ad934c953809 /PKGBUILD | |
download | aur-railcar-git.tar.gz |
initial commit - v1.0.4.47.bedd974597
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..cd6e908eb3e5 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,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" +} + |