packages/packages/cargo-deb/PKGBUILD

23 lines
639 B
Bash

# Maintainer: MedzikUser <nivua1fn@duck.com>
pkgname='cargo-deb'
pkgver="1.39.2"
pkgrel=1
pkgdesc='Cargo subcommand that generates Debian packages'
arch=('x86_64')
url="https://github.com/kornelski/cargo-deb"
license=('MIT')
makedepends=('cargo')
source=("${url}/archive/v${pkgver}.tar.gz")
sha256sums=('108cba40d72db1ab61e4a26e4d6c118b0e62551b85d91193f31ffe9972e656b7')
build() {
cd "${pkgname}-${pkgver}"
cargo build --release --locked
}
package() {
cd "${pkgname}-${pkgver}"
install -Dm 755 target/release/${pkgname} "${pkgdir}/usr/bin/${pkgname}"
install -Dm 644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}