blob: 2f57f8974d2a93aed719daacc01babd265e9c363 (
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
65
66
67
68
69
70
71
|
# Maintainer: Agil Mammadov <mammadovagil@proton.me>
pkgname=cpak-bin
pkgver=2.14.18
pkgrel=1
pkgdesc="A fast, decentralized, portable, powerful and low-memory footprint package format for Linux."
arch=('x86_64' 'aarch64')
url="https://github.com/Containerpak/cpak"
license=('LGPL-2.1-only')
provides=('cpak')
conflicts=('cpak')
options=('!strip' '!debug')
depends=(
'slirp4netns'
'util-linux'
'dbus'
'polkit'
'tar'
'gzip'
'xdg-utils'
)
optdepends=(
'webkit2gtk-4.1: web preview adapter'
'qt6-base: Qt UI adapter'
'knotifications: KDE notifications'
'gnome-keyring: Secret Service backend'
'kwallet5: KWallet Secret Service backend'
)
source=("cpak-${pkgver}.tar.gz::https://github.com/Containerpak/cpak/archive/refs/tags/v${pkgver}.tar.gz")
sha256sums=('8b8ba72dabc3f17ce547e1680cf130fd6e1b806e8ea2dc2a9d2fb9ff8b6e6f26')
sha256sums_x86_64=('aadc1433d898f25b6e483ade62a209af7a76ee7350f4da831eab2a82ad2ea9fa'
'89f0f3af4eedc675b6d697074eb4aa2da0ba711b0f1a20e5d37550da8d4ef63b')
sha256sums_aarch64=('e432451f229d6714af882af9ffd5bbacdc07c900369472fa1e338402534d5624'
'fe95b1689390951bfaceef4a3f1b81642160c94d22ce753c10280053f008c661')
source_x86_64=(
"cpak-${pkgver}-linux-amd64::https://github.com/Containerpak/cpak/releases/download/v${pkgver}/cpak-linux-amd64"
"cpak-${pkgver}-storaged-linux-amd64::https://github.com/Containerpak/cpak/releases/download/v${pkgver}/cpak-storaged-linux-amd64"
)
source_aarch64=(
"cpak-${pkgver}-linux-arm64::https://github.com/Containerpak/cpak/releases/download/v${pkgver}/cpak-linux-arm64"
"cpak-${pkgver}-storaged-linux-arm64::https://github.com/Containerpak/cpak/releases/download/v${pkgver}/cpak-storaged-linux-arm64"
)
package() {
cd "cpak-${pkgver}"
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
case "$CARCH" in
x86_64) _suffix=amd64 ;;
aarch64) _suffix=arm64 ;;
esac
install -Dm755 "${srcdir}/cpak-${pkgver}-linux-${_suffix}" \
"${pkgdir}/usr/bin/cpak"
# Upstream discovers the storage service beside cpak or on PATH.
install -Dm755 "${srcdir}/cpak-${pkgver}-storaged-linux-${_suffix}" \
"${pkgdir}/usr/bin/cpak-storaged"
chmod +x "${srcdir}/cpak-${pkgver}-linux-${_suffix}"
"${srcdir}/cpak-${pkgver}-linux-${_suffix}" completion bash > cpak.bash
"${srcdir}/cpak-${pkgver}-linux-${_suffix}" completion zsh > _cpak
"${srcdir}/cpak-${pkgver}-linux-${_suffix}" completion fish > cpak.fish
install -Dm644 cpak.bash "${pkgdir}/usr/share/bash-completion/completions/cpak"
install -Dm644 _cpak "${pkgdir}/usr/share/zsh/site-functions/_cpak"
install -Dm644 cpak.fish "${pkgdir}/usr/share/fish/vendor_completions.d/cpak.fish"
}
|