1
0
mirror of https://github.com/bertptrs/aur.git synced 2025-12-25 20:40:32 +01:00

Add 'cargo-cache/' from commit '1c1bc559df8370598d60d3be54b8d88ea4e152b0'

git-subtree-dir: cargo-cache
git-subtree-mainline: e703fb32d6
git-subtree-split: 1c1bc559df
This commit is contained in:
2021-06-17 16:02:18 +02:00
2 changed files with 37 additions and 0 deletions

13
cargo-cache/.SRCINFO Normal file
View File

@@ -0,0 +1,13 @@
pkgbase = cargo-cache
pkgdesc = Display info and prune cargo cache
pkgver = 0.6.3
pkgrel = 1
url = https://github.com/matthiaskrgr/cargo-cache
arch = x86_64
license = MIT
license = Apache
depends = cargo
source = cargo-cache-0.6.3.tar.gz::https://github.com/matthiaskrgr/cargo-cache/archive/0.6.3.tar.gz
sha256sums = 2a95485babc97ab1c3ea9fffe61d36a001817ec0cce7fe512e012051532b7bb5
pkgname = cargo-cache

24
cargo-cache/PKGBUILD Normal file
View File

@@ -0,0 +1,24 @@
# Maintainer: Bert Peters <bert@bertptrs.nl>
# Contributor: Jason Nader <jason d0t nader pr0t0nmail.c0m>
pkgname=cargo-cache
pkgver=0.6.3
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=('2a95485babc97ab1c3ea9fffe61d36a001817ec0cce7fe512e012051532b7bb5')
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
}