blob: 6c1aeed3521c775ebeb2489b5d17f6191eb49155 (
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
|
# Maintainer: kkernick <kkernick at protonmail dot com>
pkgname=antimony-sandbox
pkgdesc="Sandbox Applications"
pkgver=4.0.0
pkgrel=1
install=antimony.install
license=("Unlicense")
url="https://github.com/kkernick/antimony"
source=("git+https://github.com/kkernick/antimony#tag=${pkgver}")
b2sums=("SKIP")
depends=(findutils glibc bubblewrap libseccomp xdg-dbus-proxy sqlite dbus)
makedepends=(git cargo pkgconf)
arch=("any")
prepare() {
cd $srcdir/antimony
export RUSTUP_TOOLCHAIN=stable
cargo fetch --target "$(rustc -vV | sed -n 's/host: //p')"
}
build() {
cd $srcdir/antimony
export RUSTUP_TOOLCHAIN=stable
export CARGO_TARGET_DIR=target
cargo build --frozen --release --workspace
}
check() {
cd $srcdir/antimony
export RUSTUP_TOOLCHAIN=stable
export CARGO_TARGET_DIR=target
cargo test
}
package() {
cd $srcdir/antimony
install -Dm755 "target/release/antimony" "$pkgdir/usr/bin/antimony"
install -Dm755 "target/release/notify" "$pkgdir/usr/share/antimony/utilities/antimony-notify"
for binary in antimony-monitor antimony-spawn antimony-dumper antimony-open antimony-tracer; do
install -Dm755 "target/release/$binary" "$pkgdir/usr/share/antimony/utilities/$binary"
done
for profile in $(ls config/profiles); do
install -Dm644 "config/profiles/$profile" "$pkgdir/usr/share/antimony/config/profiles/$profile"
done
for feature in $(ls config/features); do
install -Dm644 "config/features/$feature" "$pkgdir/usr/share/antimony/config/features/$feature"
done
install -Dm644 "config/default.toml" "$pkgdir/usr/share/antimony/config/profiles/default.toml"
install -Dm644 "config/profile.toml" "$pkgdir/usr/share/antimony/config/profile.toml"
install -Dm644 "config/feature.toml" "$pkgdir/usr/share/antimony/config/feature.toml"
# Build the shell completions
target/release/antimony_completions
install -Dm644 "completions/antimony.bash" "$pkgdir/usr/share/bash-completion/antimony"
install -Dm644 "completions/antimony.fish" "$pkgdir/usr/share/fish/vendor_completions.d/antimony.fish"
install -Dm644 "completions/_antimony" "$pkgdir/usr/share/zsh/site-functions/_antimony"
}
|