Package Details: rust-git 4:1.82.0.r1.59a74db3-2

Git Clone URL: https://aur.archlinux.org/rust-git.git (read-only, click to copy)
Package Base: rust-git
Description: Systems programming language focused on safety, speed and concurrency
Upstream URL: https://www.rust-lang.org/
Keywords: cargo rust
Licenses: Apache-2.0 OR MIT
Conflicts: cargo, rust, rust-docs, rustfmt
Provides: cargo, rust, rustfmt
Submitter: mrshpot
Maintainer: bingbong
Last Packager: bingbong
Votes: 28
Popularity: 0.157004
First Submitted: 2012-01-21 11:30 (UTC)
Last Updated: 2024-08-23 12:50 (UTC)

Required by (4541)

Sources (4)

Latest Comments

« First ‹ Previous 1 .. 8 9 10 11 12 13 14 Next › Last »

spider-mario commented on 2012-12-23 19:35 (UTC)

The thing is, if the .el files are copied too, then the user can install emacs after building the package and still be able to use the mode (though it will be slower than if it has been precompiled). That is the reason why only the call to make is in the if.

<deleted-account> commented on 2012-12-23 19:03 (UTC)

I'm trying it out now, but I made the following modifications: cp -a *.elc "$pkgdir/usr/share/emacs/site-lisp/" # copy just the .elc files It also might be useful to wrap this whole section in the if: if which emacs > /dev/null; cd src/etc/emacs; make; install --directory "$pkgdir/usr/share/emacs/site-lisp/"; cp -a *.elc "$pkgdir/usr/share/emacs/site-lisp/" echo "enable rust-mode in emacs by adding (require 'rust-mode) to your ~/.emacs file" fi Something along these lines perhaps.

spider-mario commented on 2012-12-23 18:04 (UTC)

I’ve just given it a try, please let me know whether it works.

<deleted-account> commented on 2012-12-23 17:43 (UTC)

For emacs, you need to first build the files in the emacs directory. I'm not sure what the pre-reqs for this are (you at least need emacs installed though). the emacs files are in src/etc/emacs. You need to run make from this directory. Then you copy all the .elc files from there to /usr/share/emacs/site-lisp/ After that you need to add (require 'rust-mode) to your ~/.emacs file (This can probably just be some post-install output for the user to act on). I'm not sure how to do all this in the PKGBUILD right now. I'll look into (and I'm testing some stuff now) and I'll hopefully get back to you with a patched PKGBUILD, but if anyone can do this quickly off the top of their head, that'd be great too :)

spider-mario commented on 2012-12-10 19:23 (UTC)

Done for Vim, thanks! Unfortunately, I don’t use Emacs either, so even if I tried to do the same for the Emacs files, I wouldn’t be able to check that it works. If someone can make it work, I’ll be glad to add it to the PKGBUILD.

thestinger commented on 2012-12-10 14:40 (UTC)

It would be great if you could install the Vim and Emacs files that ship with the rust source. For vim, you just need this: mkdir -p "$pkgdir/usr/share/vim" cp -a src/etc/vim "$pkgdir/usr/share/vim/vimfiles" I'm unsure about what to do with the Emacs files + Makefile though, so an Emacs user will have to step forward with that info :).

mrshpot commented on 2012-10-19 07:00 (UTC)

Sorry, due to lack of time I'm disowning it so somebody can actually fix it.

svenstaro commented on 2012-10-12 16:48 (UTC)

This PKGBUILD has a bunch of problems. 1) You are not using a packaging() function 2) You are still using || return 1 3) You are using the wrong DESTDIR 4) You are not using Maintainer or Contributor in the comment but your custom "Author" 5) You don't need the python hack anymore 6) You shouldn't manually have to copy docs (did you make an upstream bug report?)

<deleted-account> commented on 2012-10-12 16:06 (UTC)

Files are being installed in the wrong directory (/usr/usr instead of just /usr), fixed PKGBUILD: http://p.blicky.net/86t6s (only changes the DESTDIR= line).

<deleted-account> commented on 2012-10-12 11:39 (UTC)

Anybody with problems on x86_64, if so what did you do to solve this? I am working with the official repos and python2, but at the end of the build I have problems with packaging the documentation which kill the whole build. I've tried modifiying the PKGBUILD with no success, any ideas? thanks for the PKGBUILD though