Merge pull request #22244 from tiagogaspar8/strongswan_replay
[feed/packages.git] / utils / docker-compose / Makefile
1 include $(TOPDIR)/rules.mk
2
3 PKG_NAME:=compose
4 PKG_VERSION:=2.23.1
5 PKG_RELEASE:=1
6 PKG_LICENSE:=Apache-2.0
7 PKG_LICENSE_FILES:=LICENSE
8
9 PKG_SOURCE:=v$(PKG_VERSION).tar.gz
10 PKG_SOURCE_URL:=https://codeload.github.com/docker/compose/tar.gz/v${PKG_VERSION}?
11 PKG_HASH:=9b4fba785b09d6745c35fff440cf5e2ce80bf7216dcb048535a7761dec492d11
12
13 PKG_MAINTAINER:=Javier Marcet <javier@marcet.info>
14
15 PKG_BUILD_DEPENDS:=golang/host
16 PKG_BUILD_PARALLEL:=1
17 PKG_BUILD_FLAGS:=no-mips16
18
19 GO_PKG:=github.com/docker/compose/v2
20 GO_PKG_BUILD_PKG:=github.com/docker/compose/v2/cmd
21 GO_PKG_LDFLAGS_X:=github.com/docker/compose/v2/internal.Version=v$(PKG_VERSION)
22 GO_PKG_TAGS:=e2e,kube
23
24 include $(INCLUDE_DIR)/package.mk
25 include ../../lang/golang/golang-package.mk
26
27 define Package/docker-compose
28 SECTION:=utils
29 CATEGORY:=Utilities
30 TITLE:=Docker Compose
31 URL:=https://github.com/docker/compose
32 DEPENDS:=$(GO_ARCH_DEPENDS) +docker
33 endef
34
35 define Package/docker-compose/description
36 Multi-container orchestration for Docker
37 endef
38
39 define Package/docker-compose/install
40 $(INSTALL_DIR) $(1)/usr/lib/docker/cli-plugins/
41 $(INSTALL_BIN) $(GO_PKG_BUILD_BIN_DIR)/cmd $(1)/usr/lib/docker/cli-plugins/docker-compose
42 $(INSTALL_DIR) $(1)/usr/bin/
43 $(LN) ../lib/docker/cli-plugins/docker-compose $(1)/usr/bin/docker-compose
44 endef
45
46 $(eval $(call GoBinPackage,docker-compose))
47 $(eval $(call BuildPackage,docker-compose))