blob: 9b40cbc72fad56d29097742ff8943a75500bbc9d (
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
|
# Maintainer: Vitalii Kuzhdin <vitaliikuzhdin@gmail.com>
# Contributor: simonsmh <simonsmh@gmail.com>
_name="okteto"
pkgname="${_name}-beta"
pkgver=3.2.1
_pkgver="${pkgver//beta/-beta\.}"
pkgrel=1
pkgdesc="Build better applications by developing and testing your code directly in Kubernetes"
arch=('x86_64' 'aarch64')
url="https://www.okteto.com"
_url="https://github.com/${_name}/${_name}"
license=('Apache-2.0')
depends=('glibc')
makedepends=('go')
optdepends=('kubectl')
_pkgsrc="${_name}-${_pkgver}"
source=("${_pkgsrc}.tar.gz::${_url}/archive/${_pkgver}.tar.gz")
sha256sums=('5e2d42debd18e5d0c772bc8196a915dd546136bff8d876345462aa494b275482')
prepare() {
cd "${srcdir}/${_pkgsrc}"
mkdir -p "build"
}
build() {
cd "${srcdir}/${_pkgsrc}"
export CGO_CPPFLAGS="${CPPFLAGS}"
export CGO_CFLAGS="${CFLAGS}"
export CGO_CXXFLAGS="${CXXFLAGS}"
export CGO_LDFLAGS="${LDFLAGS}"
export GOFLAGS="-buildmode=pie -trimpath -ldflags=-linkmode=external -mod=readonly -modcacherw"
go build -v -o "build/${_name}" -ldflags "\
-X ${_url#https://}/pkg/config.VersionString=${pkgver}" \
.
}
# check() {
# cd "${srcdir}/${_pkgsrc}"
# go test ./...
# }
package() {
cd "${srcdir}/${_pkgsrc}"
install -vDm755 "build/${_name}" "${pkgdir}/usr/bin/${_name}"
install -vDm644 "README.md" "${pkgdir}/usr/share/doc/${_name}/README.md"
install -vDm644 "LICENSE" "${pkgdir}/usr/share/licenses/${_name}/LICENSE"
}
|