summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlat2017-01-01 00:45:51 -0500
committerFlat2017-01-01 00:45:51 -0500
commit448dbe645ba71809435ce78f15fa944ef30ee4ca (patch)
treef373f717c7c7fbe9155c878d5af7a8a622215f4a
parent600401ab4f38d7d275b7f911335f51d58035e033 (diff)
downloadaur-448dbe645ba71809435ce78f15fa944ef30ee4ca.tar.gz
Compile targeting musl
-rw-r--r--.SRCINFO8
-rw-r--r--PKGBUILD12
2 files changed, 11 insertions, 9 deletions
diff --git a/.SRCINFO b/.SRCINFO
index fbcd6991f06..ece0b6b3232 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,21 +1,19 @@
# Generated by mksrcinfo v8
-# Fri Dec 30 23:02:40 UTC 2016
+# Sun Jan 1 05:45:36 UTC 2017
pkgbase = parallel-rust
pkgdesc = Inspired by GNU Parallel, a command-line CPU load balancer written in Rust.
pkgver = 0.8.0
- pkgrel = 1
+ pkgrel = 2
url = https://github.com/mmstick/parallel
arch = i686
arch = x86_64
license = MIT
- makedepends = rust-nightly
- makedepends = cargo-nightly
depends = gcc-libs-multilib
optdepends = dash: increased performance over sh
provides = parallel
conflicts = parallel
source = https://github.com/mmstick/parallel/archive/0.8.0.tar.gz
- md5sums = f4ba609e871ead210fcee524a110d9fb
+ md5sums = ef2f9190e28a1d3531a9459f19893361
pkgname = parallel-rust
diff --git a/PKGBUILD b/PKGBUILD
index 20982324651..d61480e4788 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,28 +1,32 @@
# Maintainer: Flat <Flat@imo.uto.moe>
pkgname=parallel-rust
pkgver=0.8.0
-pkgrel=1
+pkgrel=2
pkgdesc="Inspired by GNU Parallel, a command-line CPU load balancer written in Rust."
arch=('i686' 'x86_64')
url="https://github.com/mmstick/parallel"
license=('MIT')
depends=('gcc-libs-multilib')
-makedepends=('rust-nightly' 'cargo-nightly')
optdepends=('dash: increased performance over sh')
provides=('parallel')
conflicts=('parallel')
source=("https://github.com/mmstick/parallel/archive/$pkgver.tar.gz")
md5sums=('ef2f9190e28a1d3531a9459f19893361')
+prepare() {
+ CARGO_HOME=$srcdir/rust RUSTUP_HOME=$srcdir/rust bash -c 'curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain nightly -y'
+ CARGO_HOME=$srcdir/rust RUSTUP_HOME=$srcdir/rust $srcdir/rust/bin/rustup target add $CARCH-unknown-linux-musl
+}
+
build() {
cd "parallel-$pkgver"
- cargo build --release
+ CARGO_HOME=$srcdir/rust RUSTUP_HOME=$srcdir/rust $srcdir/rust/bin/cargo build --release --target $CARCH-unknown-linux-musl
}
package() {
cd "parallel-$pkgver"
mkdir -p $pkgdir/usr/bin
mkdir -p $pkgdir/usr/share/licenses/$pkgname
- install target/release/parallel $pkgdir/usr/bin
+ install target/$CARCH-unknown-linux-musl/release/parallel $pkgdir/usr/bin
install LICENSE $pkgdir/usr/share/licenses/$pkgname
}