blob: d45ea4b4b99fc4a4d4e3e3969f8f1f08f18b27e1 (
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
|
# Maintainer: Arvid Norlander <VorpalBlade@users.noreply.github.com>
pkgname=paketkoll
_pkgver=0.3.7
pkgver=${_pkgver/-/.}
pkgrel=1
pkgdesc="Fast integrity check for files installed by pacman"
arch=(x86_64 i686 armv7h aarch64)
url="https://github.com/VorpalBlade/paketkoll"
license=('MPL-2.0')
makedepends=('cargo' 'cmake')
options=('!lto') # LTO breaks with ring
source=("$pkgname-$_pkgver.tar.gz::https://github.com/VorpalBlade/$pkgname/archive/refs/tags/$pkgname-v${_pkgver}.tar.gz")
sha256sums=('98ae2f5cf97720cc00e15ee4a92fd750e76ea76422f58d740ccf31dd981b717d')
_unpacked_dir="$pkgname-$pkgname-v$_pkgver"
prepare() {
cd "$_unpacked_dir"
export RUSTUP_TOOLCHAIN=stable
export CARGO_TARGET_DIR=target
cargo fetch --locked --target "$(rustc -vV | sed -n 's/host: //p')"
}
build() {
cd "$_unpacked_dir"
export RUSTUP_TOOLCHAIN=stable
export CARGO_TARGET_DIR=target
make CARGO_FLAGS='--frozen --no-default-features --features=arch_linux,json -p paketkoll -p xtask'
}
check() {
cd "$_unpacked_dir"
export RUSTUP_TOOLCHAIN=stable
export CARGO_TARGET_DIR=target
make test CARGO_FLAGS='--frozen --no-default-features --features=arch_linux,json -p paketkoll -p xtask'
}
package() {
cd "$_unpacked_dir"
export RUSTUP_TOOLCHAIN=stable
export CARGO_TARGET_DIR=target
make install-paketkoll DESTDIR="$pkgdir" PREFIX=/usr CARGO_FLAGS='--frozen --no-default-features --features=arch_linux,json -p paketkoll -p xtask'
}
|