blob: 792daebfdd8ada68b4f87c857a91385720709c3c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
# Maintainer: Artyom Kalin <kalin.a.v20031@gmail.com>
pkgname=pacrs
pkgver=0.2.0
pkgrel=1
pkgdesc='pacman wrapper with CLI inspired by zypper and apt'
url='https://github.com/5121f/pacrs'
source=("$pkgname-$pkgver.tar.gz::https://github.com/5121f/pacrs/archive/refs/tags/v$pkgver.tar.gz")
arch=('x86_64')
makedepends=('cargo')
depends=('git' 'pacman' 'libalpm.so>=14')
optdepends=('paru: AUR support')
sha256sums=('363a9d266b5a877c394aecdf87c912cfe8c4f7791b4f401f4521c752637b9881')
prepare() {
cd "$pkgname-$pkgver"
export RUSTUP_TOOLCHAIN=stable
cargo fetch --locked --target "$(rustc -vV | sed -n 's/host: //p')"
}
build () {
cd "$srcdir/$pkgname-$pkgver"
export RUSTUP_TOOLCHAIN=stable
export CARGO_TARGET_DIR=target
cargo build --release --frozen
}
check() {
cd "$srcdir/$pkgname-$pkgver"
export RUSTUP_TOOLCHAIN=stable
cargo test --frozen --all-features
}
package() {
cd "$srcdir/$pkgname-$pkgver"
install -Dm0755 -t $pkgdir/usr/bin/ target/release/$pkgname
install -Dm0644 completions/fish $pkgdir/usr/share/fish/vendor_completions.d/$pkgname.fish
}
|