mirror of
https://github.com/bertptrs/aur.git
synced 2025-12-25 20:40:32 +01:00
Add 'cargo-cache/' from commit '639290fdb473fa402e257960b9c7010b5a170e2f'
git-subtree-dir: cargo-cache git-subtree-mainline:fb533451afgit-subtree-split:639290fdb4
This commit is contained in:
14
cargo-cache/.SRCINFO
Normal file
14
cargo-cache/.SRCINFO
Normal file
@@ -0,0 +1,14 @@
|
||||
pkgbase = cargo-cache
|
||||
pkgdesc = Display info and prune cargo cache
|
||||
pkgver = 0.8.3
|
||||
pkgrel = 1
|
||||
url = https://github.com/matthiaskrgr/cargo-cache
|
||||
arch = x86_64
|
||||
license = MIT
|
||||
license = Apache
|
||||
makedepends = cargo
|
||||
depends = libgit2
|
||||
source = cargo-cache-0.8.3.tar.gz::https://github.com/matthiaskrgr/cargo-cache/archive/0.8.3.tar.gz
|
||||
sha256sums = d0f71214d17657a27e26aef6acf491bc9e760432a9bc15f2571338fcc24800e4
|
||||
|
||||
pkgname = cargo-cache
|
||||
33
cargo-cache/PKGBUILD
Normal file
33
cargo-cache/PKGBUILD
Normal file
@@ -0,0 +1,33 @@
|
||||
# Maintainer: Bert Peters <bert@bertptrs.nl>
|
||||
# Contributor: Jason Nader <jason d0t nader pr0t0nmail.c0m>
|
||||
|
||||
pkgname=cargo-cache
|
||||
pkgver=0.8.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=('d0f71214d17657a27e26aef6acf491bc9e760432a9bc15f2571338fcc24800e4')
|
||||
depends=('libgit2')
|
||||
makedepends=('cargo')
|
||||
|
||||
prepare() {
|
||||
cd "$pkgname-$pkgver"
|
||||
# Upstream tried to make libgit vendoring optional but it doesn't work. Manually implement it anyway.
|
||||
sed -i "s|\[\"vendored-libgit2\"\]|\[\]|" Cargo.toml
|
||||
sed -i "s|, \"vendored-libgit\"||" Cargo.toml
|
||||
}
|
||||
|
||||
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
|
||||
}
|
||||
Reference in New Issue
Block a user