mirror of
https://github.com/built-aur/packages
synced 2024-08-14 23:01:15 +00:00
22 lines
639 B
Bash
22 lines
639 B
Bash
# Maintainer: MedzikUser <nivua1fn@duck.com>
|
|
pkgname='cargo-deb'
|
|
pkgver="1.43.0"
|
|
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=('2a9df87a5d6aaec8c16349a4fd8eab7c1d34a79da40a69338552872e546c282c')
|
|
|
|
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"
|
|
}
|