diff options
-rw-r--r-- | .SRCINFO | 13 | ||||
-rw-r--r-- | PKGBUILD | 32 |
2 files changed, 24 insertions, 21 deletions
@@ -1,18 +1,19 @@ pkgbase = lima pkgdesc = Linux virtual machines, typically on macOS, for running containerd. - pkgver = 0.16.0 + pkgver = 0.17.2 pkgrel = 1 url = https://github.com/lima-vm/lima arch = x86_64 - license = MIT - makedepends = go>=1.17 + license = Apache + makedepends = go>=1.18 makedepends = git makedepends = gzip makedepends = tar makedepends = gcc - provides = rover + makedepends = make + provides = lima conflicts = lima-bin - source = lima-0.16.0.tar.gz::https://github.com/lima-vm/lima/archive/v0.16.0.tar.gz - sha256sums = deb23bd5d913790943dfa4cee8a6d50629e031750da2a84006736e13240e3977 + source = lima-0.17.2.tar.gz::https://github.com/lima-vm/lima/archive/v0.17.2.tar.gz + sha256sums = fcc3ea1de6fe5910fb1a436729e2aecf6c9b261e5c2e55a1c6754d9a5b75eb49 pkgname = lima @@ -1,39 +1,41 @@ # Maintainer: Enmanuel Moreira <enmanuelmoreira@gmail.com> pkgname=lima -pkgver=0.16.0 +pkgver=0.17.2 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=('rover') -license=('MIT') -makedepends=('go>=1.17' 'git' 'gzip' 'tar' 'gcc') +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=('deb23bd5d913790943dfa4cee8a6d50629e031750da2a84006736e13240e3977') +sha256sums=('fcc3ea1de6fe5910fb1a436729e2aecf6c9b261e5c2e55a1c6754d9a5b75eb49') build() { cd "${pkgname}-${pkgver}" - export CGO_CPPFLAGS="${CPPFLAGS}" - export CGO_CFLAGS="${CFLAGS}" - export CGO_CXXFLAGS="${CXXFLAGS}" - export CGO_LDFLAGS="${LDFLAGS}" + export CGO_ENABLED=1 export GOFLAGS="-buildmode=pie -buildvcs=false -trimpath -ldflags=-linkmode=external -mod=readonly -modcacherw" - BUILD_DATE=$(date '+%Y-%m-%d %H:%M:%S') - go build -o build/${pkgname} -ldflags="-X 'main.buildVersion=${pkgver}' -X 'main.buildDate=${BUILD_DATE}'" ./cmd/limactl/ + make minimal } package() { cd "${srcdir}"/"${pkgname}-${pkgver}" - install -Dm755 cmd/"${pkgname}" "${pkgdir}"/usr/bin/${pkgname} + 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 build/"${pkgname}" "${pkgdir}"/usr/bin/limactl - mkdir -p ${pkgdir}/usr/share/${pkgname}/examples/ - cp -rv examples/* ${pkgdir}/usr/share/${pkgname}/examples/ + 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 examples/* ${pkgdir}/usr/share/${pkgname}/templates/ install -Dm644 README.md ${pkgdir}/usr/share/doc/${pkgname}/README.md install -Dm644 LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE } |