rust: update to 1.0.0.beta.
This commit is contained in:
parent
dbbeb07c2c
commit
6a547353eb
1 changed files with 14 additions and 16 deletions
|
@ -1,35 +1,33 @@
|
||||||
# Template file for 'rust'
|
# Template file for 'rust'
|
||||||
pkgname=rust
|
pkgname=rust
|
||||||
version=0.12.0
|
version=1.0.0.beta
|
||||||
revision=1
|
revision=1
|
||||||
|
wrksrc="rustc-${version/.beta/-beta}"
|
||||||
lib32disabled=yes
|
lib32disabled=yes
|
||||||
build_style=configure
|
build_style=configure
|
||||||
only_for_archs="x86_64 i686"
|
only_for_archs="x86_64 i686"
|
||||||
configure_args="--prefix=/usr --disable-docs"
|
configure_args="--prefix=/usr --disable-docs"
|
||||||
hostmakedepends="which pkg-config perl curl python chrpath"
|
hostmakedepends="which pkg-config curl python"
|
||||||
short_desc="A safe, concurrent, practical language"
|
short_desc="A safe, concurrent, practical systems language"
|
||||||
maintainer="Juan RP <xtraeme@gmail.com>"
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
||||||
homepage="http://www.rust-lang.org/"
|
homepage="http://www.rust-lang.org/"
|
||||||
license="MIT, Apache-2.0"
|
license="MIT, Apache-2.0"
|
||||||
distfiles="http://static.rust-lang.org/dist/rust-${version}.tar.gz"
|
distfiles="https://static.rust-lang.org/dist/rustc-${version/.beta/-beta}-src.tar.gz"
|
||||||
checksum=883e66b24d90d9957c5c538469fcde6f0668e5fb6448beecfc60884060e769b7
|
checksum=94248e30487723ac6f6c34a0db5a21085c0b1338e6a32bd12b159e1d2cd80451
|
||||||
|
|
||||||
if [ "$XBPS_MACHINE" = "x86_64" ]; then
|
if [ "$XBPS_MACHINE" = "x86_64" ]; then
|
||||||
configure_args+=" --build=$(gcc -dumpmachine)"
|
configure_args+=" --build=$(gcc -dumpmachine)"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
post_install() {
|
post_install() {
|
||||||
vlicense COPYRIGHT LICENSE
|
vlicense COPYRIGHT
|
||||||
|
vlicense LICENSE-APACHE
|
||||||
|
vlicense LICENSE-MIT
|
||||||
|
|
||||||
vmkdir usr/share/vim/vimfiles
|
cd ${DESTDIR}/usr/lib/rustlib
|
||||||
cp -a src/etc/vim ${DESTDIR}/usr/share/vim/vimfiles
|
rm install.log uninstall.sh components manifest-rustc rust-installer-version
|
||||||
find ${DESTDIR}/usr/share/vim -type f -exec chmod 644 {} +
|
cd ${DESTDIR}/usr/lib
|
||||||
find ${DESTDIR}/usr/share/vim -type d -exec chmod 755 {} +
|
ln -sf rustlib/*/lib/*.so . # symlinks instead of copies
|
||||||
|
|
||||||
vinstall src/etc/zsh/_rust 644 usr/share/zsh/site-functions
|
|
||||||
vinstall src/etc/kate/rust.xml 644 usr/share/apps/katepart/syntax
|
|
||||||
vinstall src/etc/gedit/share/mime/packages/rust.xml 644 usr/share/mime/packages
|
|
||||||
vinstall src/etc/gedit/share/gtksourceview-3.0/language-specs/rust.lang \
|
|
||||||
644 usr/share/gtksourceview-3.0/language-specs
|
|
||||||
|
|
||||||
|
rm -rf ${DESTDIR}/usr/share/doc/rust
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue