summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 97895933980ff29db38a2a8dd31b3c6e2f50af58 (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
# 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
}