makedeb


cargo-edit 0.12.3-1


A utility for managing cargo dependencies from the command line

Viewing /PKGBUILD.

View raw.

Click here to go back to the Git tree for cargo-edit.

# Maintainer: Hunter Wittenborn <hunter@hunterwittenborn.com>
pkgbase=cargo-edit
pkgname=('cargo-edit' 'cargo-add' 'cargo-rm' 'cargo-set-version' 'cargo-upgrade')
pkgver=0.12.3
pkgrel=1
pkgdesc='A utility for managing cargo dependencies from the command line'
arch=('any')
makedepends=('cargo')
url='http://killercup.github.io/cargo-edit/'

source=("https://github.com/killercup/cargo-edit/archive/refs/tags/v0.12.3.tar.gz")
sha256sums=('5ee14b3f16caa2f36d1e6d41f768043f134e552bec8dbe9d3afe00621b2d0020')

build() {
    cd "${pkgname}-${pkgver}/"
    cargo build --release --bins
}

package_cargo-edit() {
    depends=('cargo-add' 'cargo-rm' 'cargo-set-version' 'cargo-upgrade')
}

package_cargo-add() {
    cd "${pkgbase}-${pkgver}/"
    install -Dm 755 target/release/cargo-add "${pkgdir}/usr/bin/cargo-add"
}

package_cargo-rm() {
    cd "${pkgbase}-${pkgver}/"
    install -Dm 755 target/release/cargo-rm "${pkgdir}/usr/bin/cargo-rm"
}

package_cargo-set-version() {
    cd "${pkgbase}-${pkgver}/"
    install -Dm 755 target/release/cargo-set-version "${pkgdir}/usr/bin/cargo-set-version"
}

package_cargo-upgrade() {
    cd "${pkgbase}-${pkgver}/"
    install -Dm 755 target/release/cargo-upgrade "${pkgdir}/usr/bin/cargo-upgrade"
}

# vim: set sw=4 expandtab: