diff options
author | Mariszo | 2017-11-10 11:36:16 +0100 |
---|---|---|
committer | Mariszo | 2017-11-10 11:36:16 +0100 |
commit | ab1e1952a376aef98e939d6b25f81c51c42d8138 (patch) | |
tree | 9bb28c99227ae8da84b10e8b84f5164af75aee5f /PKGBUILD | |
download | aur-railcar.tar.gz |
initial commit - v1.0.4-1
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..1419c3b23df1 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,33 @@ +#Maintainer: Mariszo <mariszo@itfinger.com> +#Contributor: Mariszo <mariszo@itfinger.com> + +pkgname=railcar +pkgver=1.0.4 +pkgrel=1 +pkgdesc="Rust implementation of the Open Containers Initiative oci-runtime" +url="https://github.com/oracle/railcar" +depends=('gcc-libs' 'libseccomp') +makedepends=('rustup') +arch=('x86_64') +source=("$pkgver.tar.gz::https://github.com/oracle/railcar/archive/v$pkgver.tar.gz") +provides=('railcar') +license=("APACHE") +sha512sums=('83cb2309bd333e98c9c6a7768df6fb389b0e4d6c07821db494ccf3882938334f4ab5221d5a695df8e4871619d14eeb2e52d7d21af83f86b389e33e428f1d6c3d') + +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 $pkgname-$pkgver + ./build.sh +} + +package() { + install -D -m 0755 $pkgname-$pkgver/railcar "$pkgdir/usr/bin/railcar" +} + |