ff1dc7270a
- Instruct packager to install cargo directly from the cargo package OBS-URL: https://build.opensuse.org/request/show/738624 OBS-URL: https://build.opensuse.org/package/show/utilities/bat?expand=0&rev=14
19 lines
469 B
Plaintext
19 lines
469 B
Plaintext
# 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` from official repositories.
|
|
|
|
zypper install cargo
|
|
|
|
2. Checkout version
|
|
|
|
git clone https://github.com/sharkdp/bat ~/tmp/bat
|
|
cd ~/tmp/bat
|
|
git checkout v0.10.0 (or another version from `git tag --list`)
|
|
|
|
3. Generate archive
|
|
|
|
cargo vendor
|
|
tar -cJf vendor.tar.xz vendor
|