baidupcs-web: add missing rice dependency

Fix: #291
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
This commit is contained in:
AmadeusGhost 2021-02-28 12:10:14 +08:00 committed by Tianling Shen
parent a372df81de
commit 03bc1d2cc8
No known key found for this signature in database
GPG Key ID: 6850B6345C862176

View File

@ -43,6 +43,15 @@ define Package/$(PKG_NAME)/description
BaiduPCS-Web is a web controller for BaiduPCS-Go
endef
define Build/Compile
( \
GOOS=$$$$(go env GOOS) GOARCH=$$$$(go env GOARCH) go get -v github.com/GeertJohan/go.rice/rice/... ; \
cd $(PKG_BUILD_DIR)/internal/pcsweb ; \
"$$$$(go env GOPATH)/bin/rice" embed-go ; \
$(call GoPackage/Build/Compile) ; \
)
endef
define Package/$(PKG_NAME)/install
$(call GoPackage/Package/Install/Bin,$(PKG_INSTALL_DIR))
$(INSTALL_DIR) $(1)/usr/bin