diff options
-rw-r--r-- | .SRCINFO | 18 | ||||
-rw-r--r-- | .gitignore | 7 | ||||
-rw-r--r-- | PKGBUILD | 31 |
3 files changed, 56 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..2b3a67f241dc --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,18 @@ +pkgbase = rust-i586-git + pkgdesc = Rust for i586 machines without SSE2 (needs to be built on newer machines) + pkgver = 1.0.0.beta.r27177.ge2504cfc76 + pkgrel = 1 + arch = i686 + arch = x86_64 + license = MIT + makedepends = python + makedepends = git + depends = llvm-libs + depends = gcc-libs + provides = rust + conflicts = rustup + source = rust-i586-git::git://github.com/rust-lang/rust.git + md5sums = SKIP + +pkgname = rust-i586-git + diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..16a2d3d5dd42 --- /dev/null +++ b/.gitignore @@ -0,0 +1,7 @@ +src +pkg +rust-i586-git/ +*.tar +*.tar.xz +*.tar.gz +*.log diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..97895933980f --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,31 @@ +# Maintainer: Nick Shvelidze <captain@pirrate.me> +pkgname=rust-i586-git +pkgver=1.0.0.beta.r27179.g35edf7d8cb +pkgrel=1 +pkgdesc="Rust for i586 machines without SSE2 (needs to be built on newer machines)" +url="https://github.com/rust-lang/rust" +arch=(i686 x86_64) +license=('MIT') +depends=(llvm-libs gcc-libs) +makedepends=(python git) +provides=(rust) +conflicts=(rustup) +source=("$pkgname::git://github.com/rust-lang/rust.git") +md5sums=('SKIP') + +pkgver() { + cd "$pkgname" + git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g' +} + +build() { + cd "$pkgname" + ./configure --target=i586-unknown-linux-gnu --host=i586-unknown-linux-gnu --disable-jemalloc --prefix=/usr + python x.py build +} + +package() { + cd "$pkgname" + python x.py dist + DESTDIR="$pkgdir/" python x.py install +} |