mirror of
https://github.com/bertptrs/aur.git
synced 2025-12-25 20:40:32 +01:00
25 lines
735 B
Bash
25 lines
735 B
Bash
# Maintainer: Bert Peters <bert@bertptrs.nl>
|
|
# Contributor: Jason Nader <jason d0t nader pr0t0nmail.c0m>
|
|
|
|
pkgname=cargo-cache
|
|
pkgver=0.7.0
|
|
pkgrel=1
|
|
pkgdesc="Display info and prune cargo cache"
|
|
arch=('x86_64')
|
|
url="https://github.com/matthiaskrgr/cargo-cache"
|
|
source=("$pkgname-$pkgver.tar.gz::https://github.com/matthiaskrgr/cargo-cache/archive/$pkgver.tar.gz")
|
|
license=('MIT' 'Apache')
|
|
depends=('cargo')
|
|
sha256sums=('57e7d8d13f604f9a585ffdaad4f1e23bc9398e36039a6183e5f616992280134e')
|
|
|
|
build() {
|
|
cd "$pkgname-$pkgver"
|
|
cargo build --release --locked
|
|
}
|
|
|
|
package() {
|
|
cd "$pkgname-$pkgver"
|
|
install -Dm755 "target/release/cargo-cache" "$pkgdir/usr/bin/cargo-cache"
|
|
install -Dm644 -t "$pkgdir/usr/share/licenses/$pkgname" LICENSE-MIT
|
|
}
|