blob: 4e6fdcb959b2dbdfc35295183c8bfa74a8d46fea (
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=konfigkoll
_pkgver=0.1.9
pkgver=${_pkgver/-/.}
pkgrel=1
pkgdesc="Personal system configuration manager for Arch Linux"
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/paketkoll/archive/refs/tags/$pkgname-v${_pkgver}.tar.gz")
sha256sums=('003d43557cd40230cece9f05ddafe75d008d8d527de597e1f74308c34cec37c1')
_unpacked_dir="paketkoll-$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 -p konfigkoll -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 -p konfigkoll -p xtask'
}
package() {
cd "$_unpacked_dir"
export RUSTUP_TOOLCHAIN=stable
export CARGO_TARGET_DIR=target
make install-konfigkoll DESTDIR="$pkgdir" PREFIX=/usr CARGO_FLAGS='--frozen --no-default-features --features=arch_linux -p konfigkoll -p xtask'
}
|