2013-01-09 13:52:03 +00:00
|
|
|
# Template file for 'rust'
|
|
|
|
pkgname=rust
|
2014-10-13 12:03:56 +00:00
|
|
|
version=0.12.0
|
2014-07-17 08:39:14 +00:00
|
|
|
revision=1
|
2014-04-04 09:44:11 +00:00
|
|
|
lib32disabled=yes
|
2013-07-04 03:57:46 +00:00
|
|
|
build_style=configure
|
2014-04-03 22:45:33 +00:00
|
|
|
only_for_archs="x86_64 i686"
|
2013-07-04 04:04:57 +00:00
|
|
|
configure_args="--prefix=/usr --disable-docs"
|
2013-07-04 03:57:46 +00:00
|
|
|
hostmakedepends="which pkg-config perl curl python chrpath"
|
2013-01-09 13:52:03 +00:00
|
|
|
short_desc="A safe, concurrent, practical language"
|
2014-06-08 10:15:44 +00:00
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
2013-01-09 13:52:03 +00:00
|
|
|
homepage="http://www.rust-lang.org/"
|
|
|
|
license="MIT, Apache-2.0"
|
|
|
|
distfiles="http://static.rust-lang.org/dist/rust-${version}.tar.gz"
|
2014-10-13 12:03:56 +00:00
|
|
|
checksum=883e66b24d90d9957c5c538469fcde6f0668e5fb6448beecfc60884060e769b7
|
2013-01-09 13:52:03 +00:00
|
|
|
|
2013-07-04 04:04:57 +00:00
|
|
|
if [ "$XBPS_MACHINE" = "x86_64" ]; then
|
2014-04-03 22:13:46 +00:00
|
|
|
configure_args+=" --build=$(gcc -dumpmachine)"
|
2013-07-04 04:04:57 +00:00
|
|
|
fi
|
|
|
|
|
2013-07-04 03:57:46 +00:00
|
|
|
post_install() {
|
2014-10-13 12:03:56 +00:00
|
|
|
vlicense COPYRIGHT LICENSE
|
2013-01-09 13:52:03 +00:00
|
|
|
|
2013-07-04 03:57:46 +00:00
|
|
|
vmkdir usr/share/vim/vimfiles
|
|
|
|
cp -a src/etc/vim ${DESTDIR}/usr/share/vim/vimfiles
|
|
|
|
find ${DESTDIR}/usr/share/vim -type f -exec chmod 644 {} +
|
|
|
|
find ${DESTDIR}/usr/share/vim -type d -exec chmod 755 {} +
|
2013-01-09 13:52:03 +00:00
|
|
|
|
2013-07-04 03:57:46 +00:00
|
|
|
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
|
2013-01-09 13:52:03 +00:00
|
|
|
|
|
|
|
}
|