-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPKGBUILD
36 lines (34 loc) · 1.19 KB
/
PKGBUILD
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
# Maintainer: VHSgunzo <vhsgunzo.github.io>
pkgname='runimage-static'
pkgver='0.40.4'
pkgrel='1'
pkgdesc='Tools and sharun wrapper over RunImage rootfs to run the container.'
url="https://github.com/VHSgunzo/runimage-static"
arch=('x86_64' 'aarch64')
license=('MIT')
options=(!strip)
sharunver='v0.2.6'
sharunurl='https://github.com/VHSgunzo/sharun/releases/download'
source=('bin.list' "$sharunurl/$sharunver/sharun-${CARCH}")
sha256sums=('SKIP' 'SKIP')
install='static.install'
depends=(
bash coreutils curl findutils gawk grep iproute2
kmod procps-ng sed tar util-linux which gocryptfs
libnotify lsof slirp4netns socat xorg-xhost gzip
xz zstd lz4 jq binutils patchelf file
runimage-bubblewrap runimage-unionfs-fuse runimage-tini
runimage-uruntime runimage-chisel runimage-ssrv
)
package() {
install -Dm755 "sharun-${CARCH}" "${pkgdir}/var/RunDir/sharun/sharun"
install -Dm644 'bin.list' "${pkgdir}/var/RunDir/sharun/bin.list"
mkdir -p "${pkgdir}/var/RunDir/sharun"/{bin,shared}
(cd "${pkgdir}/var/RunDir/sharun" && \
while read bin
do ln sharun bin/"$(basename "$bin")"
done<bin.list && \
echo "v$pkgver" > bin/.version && \
ln -sfr bin ../static && \
ln -sr shared/lib lib)
}