Crates.io | cargo-makepkg |
lib.rs | cargo-makepkg |
version | 0.1.0 |
source | src |
created_at | 2018-03-22 03:55:10.834366 |
updated_at | 2018-03-22 03:55:10.834366 |
description | Build ArchLinux packages with Cargo |
homepage | |
repository | https://github.com/brandonio21/cargo-makepkg |
max_upload_size | |
id | 56837 |
size | 24,608 |
A Cargo extension similar to cargo-deb which allows building of Arch Linux packages from cargo. This makes it quick-and-easy to send your Rust projects to your Arch using friends!
This process involves building a PKGBUILD
file and invoking makepkg
to create a .tar.xz
package and a .SRCINFO
file.
cargo install cargo-makepkg
cargo makepkg
cat target/archlinux/<version>/PKGBUILD
Information will be extracted from Cargo.toml
to create a PKGBUILD
file.
If you have any differing information, it can be specified in the [package.metadata.archlinux_pkgbuild]
section of Cargo.toml
. See src/config/arch.rs
for available fields.
cargo-makepkg is technically a heavily-modified fork of cargo-arch, which builds PKGBUILD
files based on the contents of Cargo.toml
.
cargo-pkgbuild is similar to cargo-arch
and accomplishes the same goal in a much simpler way.