blob: 748d3c3df72a01edb11ca9c92ada75429aaa9887 (
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
45
46
47
48
|
# Maintainer: Kimiblock Moe
pkgname=portable-packer
pkgver=1.0.5
pkgrel=1
pkgdesc="Packaging utility for Portable"
arch=("x86_64")
url="https://github.com/Kimiblock/stashpak"
license=("GPL-3.0-or-later")
depends=("glibc" coreutils desktop-file-utils git)
makedepends=('rust' 'git')
checkdepends=(portable)
backup=()
source=("source::git+https://github.com/Kimiblock/portable-packer.git#tag=${pkgver}")
sha256sums=('8a7823e67b1a0b5f03f35f4cfc073f706ba36e1331c34c3d80813dcce71e0d19')
conflicts+=("portable<14.99")
function prepare() {
cd source
git submodule update --init --recursive
export RUSTUP_TOOLCHAIN=stable
cargo fetch --locked --target host-tuple
}
function build() {
cd source
export RUSTUP_TOOLCHAIN=stable
export CARGO_TARGET_DIR=target
cargo build --frozen --release
}
function check() {
export RUSTUP_TOOLCHAIN=stable
export CARGO_TARGET_DIR=target
cd source
cargo test --frozen
}
function package() {
export RUSTUP_TOOLCHAIN=stable
export CARGO_TARGET_DIR=target
install \
-vDm755 \
"${srcdir}/source/target/release/portable-packer" \
"${pkgdir}/usr/bin/portable-packer"
}
|