mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-12-26 20:02:30 +01:00
57 lines
1.9 KiB
Plaintext
57 lines
1.9 KiB
Plaintext
maintainer="Bart Ribbers <bribbers@disroot.org>"
|
|
pkgname=devpod
|
|
pkgver=0.6.15
|
|
pkgrel=3
|
|
pkgdesc="Codespaces but open-source, client-only, and unopinionated"
|
|
url="https://github.com/loft-sh/devpod"
|
|
# ppc64le blocked by undefined references
|
|
# armhf, armv7, x86, loongarch64 and riscv64 blocked by -race not being supported
|
|
arch="x86_64 aarch64 s390x"
|
|
license="MPL-2.0"
|
|
makedepends="
|
|
go
|
|
linux-headers
|
|
"
|
|
checkdepends="
|
|
bash
|
|
docker
|
|
"
|
|
source="$pkgname-$pkgver.tar.gz::https://github.com/loft-sh/devpod/archive/refs/tags/v$pkgver.tar.gz
|
|
0001-devpod-code-oss-binary.patch
|
|
0002-devpod-busybox-base64-decode.patch
|
|
"
|
|
subpackages="
|
|
$pkgname-bash-completion
|
|
$pkgname-zsh-completion
|
|
$pkgname-fish-completion
|
|
"
|
|
|
|
build() {
|
|
go build -trimpath -v -o devpod-cli \
|
|
-ldflags="-X github.com/loft-sh/devpod/pkg/version.version=v$pkgver -extldflags=-static"
|
|
}
|
|
|
|
check() {
|
|
./hack/unit-tests.sh
|
|
}
|
|
|
|
package() {
|
|
install -Dm755 devpod-cli "$pkgdir"/usr/bin/devpod-cli
|
|
ln -s /usr/bin/devpod-cli "$pkgdir"/usr/bin/devpod
|
|
|
|
mkdir -p \
|
|
"$pkgdir"/usr/share/bash-completion/completions \
|
|
"$pkgdir"/usr/share/zsh/site-functions \
|
|
"$pkgdir"/usr/share/fish/vendor_completions.d
|
|
|
|
./devpod-cli completion bash > "$pkgdir"/usr/share/bash-completion/completions/$pkgname
|
|
./devpod-cli completion zsh > "$pkgdir"/usr/share/zsh/site-functions/$pkgname
|
|
./devpod-cli completion fish > "$pkgdir"/usr/share/fish/vendor_completions.d/$pkgname.fish
|
|
}
|
|
|
|
sha512sums="
|
|
5c304d267b9ef790acec6feb595c09abadf57faa894cf94eeae8a758e900aa333799daf2ef92767dc5cc921bbfe550e3cfb6f41c51cbe0a2e2feb7d22339e13f devpod-0.6.15.tar.gz
|
|
1cb7c5f4802ff2157de3183372f6bc09900bf9f2a7db49eb8cb470d74c26ee72f4c6f279cd3513aaaa2e97845c638c996f25a1a72f4f34d18b85157ec0b07dd6 0001-devpod-code-oss-binary.patch
|
|
ca3d9bc0fdc00eb2e60484803d502f00e280e291b134cd784ebf627f7d60938f405c89539d45e980c31db2752736f1fb8afe08380ea3fe1cbc20f40c81cdad3e 0002-devpod-busybox-base64-decode.patch
|
|
"
|