2022-05-29 11:44:28 +00:00
|
|
|
# Maintainer: MedzikUser <nivua1fn@duck.com>
|
|
|
|
pkgname='cargo-deb'
|
2023-05-15 11:11:53 +00:00
|
|
|
pkgver="1.43.1"
|
2022-05-29 11:44:28 +00:00
|
|
|
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")
|
2023-05-15 11:11:53 +00:00
|
|
|
sha256sums=('ed2d35ae4fedab28498d5eb3490485df9fdd6209d59f6ac575cf78261e18d16f')
|
2022-05-29 11:44:28 +00:00
|
|
|
|
|
|
|
build() {
|
|
|
|
cd "${pkgname}-${pkgver}"
|
|
|
|
cargo build --release --locked
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
cd "${pkgname}-${pkgver}"
|
|
|
|
install -Dm 755 target/release/${pkgname} "${pkgdir}/usr/bin/${pkgname}"
|
2022-07-06 17:50:52 +00:00
|
|
|
install -Dm 644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
|
2022-05-29 11:44:28 +00:00
|
|
|
}
|