blob: 9a00ec564399d0fd32b6153b4ca9fcdf7349d4ad (
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
|
# Maintainer: zhs <zhao4she4@tuta.io>
# largely based on the release version one by techknowlogick
pkgname=ignite-git
_pkgname=ignite
pkgver=r1819.c4162ac6
pkgrel=1
pkgdesc="Weaveworks Ignite, combines Firecracker MicroVMs with Docker/OCI images to unify containers and VMs, GIT version."
arch=('x86_64')
url="https://github.com/weaveworks/ignite"
makedepends=('go' 'git')
depends=('containerd' 'cni-plugins')
license=('apache')
provides=('ignite-git')
conflicts=('ignite')
source=(
"git+https://github.com/weaveworks/ignite/"
"ignited.service"
)
sha256sums=('SKIP'
'd8719fd5744f790f78ff027eb8c82ad917d5a96a688e406f1ab6dcbf2bb9ec30')
pkgver() {
cd "${srcdir}/${_pkgname}"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
cd "${srcdir}/${_pkgname}"
# build assumes git repo, but we're building from tarball, so we need to set state to clean
# sed -i hack/ldflags.sh -e "s/IGNITE_GIT_TREE_STATE..dirty/IGNITE_GIT_TREE_STATE\=\"clean/i"
# no need for above when building from git
go build -mod=vendor -ldflags "$(./hack/ldflags.sh)" -o ignite ./cmd/ignite
go build -mod=vendor -ldflags "$(./hack/ldflags.sh)" -o ignited ./cmd/ignited
}
package() {
install -D -m644 "$srcdir/ignited.service" "$pkgdir/usr/lib/systemd/system/ignited.service"
install -D -m755 "${_pkgname}/ignite" "${pkgdir}/usr/bin/ignite"
install -D -m755 "${_pkgname}/ignited" "${pkgdir}/usr/bin/ignited"
}
|