blob: 4cd8ad3ed70f8e8d96120e796b27207230a192af (
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
|
# Maintainer: Enmanuel Moreira <enmanuelmoreira@gmail.com>
pkgname=lima
pkgver=1.0.1
pkgrel=1
pkgdesc="Linux virtual machines, typically on macOS, for running containerd."
arch=('x86_64')
url="https://github.com/lima-vm/lima"
conflicts=('lima-bin')
provides=('lima')
license=('Apache')
makedepends=('go>=1.18' 'git' 'gzip' 'tar' 'gcc' 'make')
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/lima-vm/${pkgname}/archive/v${pkgver}.tar.gz")
sha256sums=('82e9bfcfdf7423baaf4c712a3123237818c26b0f22abb38b73591b28a36b754e')
build() {
cd "${pkgname}-${pkgver}"
export CGO_ENABLED=1
export GOFLAGS="-buildmode=pie -buildvcs=false -trimpath -ldflags=-linkmode=external -mod=readonly -modcacherw"
make minimal
}
package() {
cd "${srcdir}"/"${pkgname}-${pkgver}"
install -Dm755 _output/bin/limactl "${pkgdir}"/usr/bin/limactl
install -Dm755 cmd/apptainer.lima "${pkgdir}"/usr/bin/apptainer.lima
install -Dm755 cmd/docker.lima "${pkgdir}"/usr/bin/docker.lima
install -Dm755 cmd/kubectl.lima "${pkgdir}"/usr/bin/kubectl.lima
install -Dm755 cmd/nerdctl.lima "${pkgdir}"/usr/bin/nerdctl.lima
install -Dm755 cmd/podman.lima "${pkgdir}"/usr/bin/podman.lima
install -Dm755 cmd/lima "${pkgdir}"/usr/bin/lima
mkdir -p ${pkgdir}/usr/share/${pkgname}/templates/
install -Dm644 _output/share/lima/lima-guestagent.Linux-$(uname -m | sed -e s/arm64/aarch64/) \
${pkgdir}/usr/share/lima/${pkgname}-guestagent.Linux-$(uname -m | sed -e s/arm64/aarch64/)
cp -rv templates/* ${pkgdir}/usr/share/${pkgname}/templates/
mkdir -p ${pkgdir}/usr/share/doc/${pkgname}/
cp -rv docs/* ${pkgdir}/usr/share/doc/${pkgname}/
install -Dm644 README.md ${pkgdir}/usr/share/doc/${pkgname}/README.md
install -Dm644 LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
}
|