2019-02-12 16:07:55 +01:00
|
|
|
# Heavily based on https://build.opensuse.org/package/view_file/devel:languages:rust/racer/README.packager (Thank you for this!)
|
|
|
|
#
|
|
|
|
# Generating `vendor.tar.xz`
|
|
|
|
|
|
|
|
1. Install `cargo` and `cargo-vendor` from official repositories. `cargo` is provided by `rust`
|
|
|
|
|
|
|
|
zypper install rust cargo-vendor
|
|
|
|
|
|
|
|
2. Checkout version
|
|
|
|
|
2019-09-24 17:36:12 +02:00
|
|
|
git clone https://github.com/sharkdp/bat ~/tmp/bat
|
|
|
|
cd ~/tmp/bat
|
2019-02-12 16:07:55 +01:00
|
|
|
git checkout v0.10.0 (or another version from `git tag --list`)
|
|
|
|
|
|
|
|
3. Generate archive
|
|
|
|
|
|
|
|
cargo vendor
|
2019-04-30 15:19:12 +02:00
|
|
|
tar -cJf vendor.tar.xz vendor
|