提交 8f334677 编写于 作者: T Tianling Shen 提交者: Beginner-Go

go-rice: add new package

Required by baidupcs-web.
Signed-off-by: NTianling Shen <cnsztl@immortalwrt.org>
上级 bd447871
# SPDX-License-Identifier: GPL-3.0-only
#
# Copyright (C) 2021 ImmortalWrt.org
include $(TOPDIR)/rules.mk
PKG_NAME:=go.rice
PKG_VERSION:=1.0.2
PKG_RELEASE:=$(AUTORELEASE)
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=https://codeload.github.com/GeertJohan/go.rice/tar.gz/v$(PKG_VERSION)?
PKG_HASH:=2eed960aa9531a87c82d2379677723bc0129bc9e387dc0dbb3bb70b78c928dd0
PKG_LICENSE:=BSD-2-Clause
PKG_LICENSE_FILES:=LICENSE
PKG_MAINTAINER:=Tianling Shen <cnsztl@immortalwrt.org>
HOST_BUILD_DEPENDS:=golang/host
HOST_BUILD_PARALLEL:=1
PKG_BUILD_DEPENDS:=golang/host
PKG_BUILD_PARALLEL:=1
PKG_USE_MIPS16:=0
GO_PKG:=github.com/GeertJohan/go.rice
GO_PKG_BUILD_PKG:=$(GO_PKG)/rice
include $(INCLUDE_DIR)/host-build.mk
include $(INCLUDE_DIR)/package.mk
include ../../lang/golang/golang-host-build.mk
include ../../lang/golang/golang-package.mk
define Package/go-rice
SECTION:=devel
CATEGORY:=Development
TITLE:=A Go package that makes working with resources
URL:=https://github.com/GeertJohan/go.rice
DEPENDS:=$(GO_ARCH_DEPENDS)
endef
define Package/go-rice/description
go.rice is a Go package that makes working with resources such as
html,js,css,images and templates easy.
During development go.rice will load required files directly from disk.
Upon deployment it's easy to add all resource files to a executable
using the rice tool without changing the source code for your package.
go.rice provides methods to add resources to a binary in different scenarios.
endef
$(eval $(call GoBinHostBuild))
$(eval $(call HostBuild))
$(eval $(call GoBinPackage,go-rice))
$(eval $(call BuildPackage,go-rice))
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册