From: Jeffery To Date: Wed, 7 Oct 2020 19:21:23 +0000 (+0800) Subject: packr: New package X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=refs%2Fpull%2F13593%2Fhead;p=feed%2Fpackages.git packr: New package From the README: Packr is a simple solution for bundling static assets inside of Go binaries. Most importantly it does it in a way that is friendly to developers while they are developing. Signed-off-by: Jeffery To --- diff --git a/devel/packr/Makefile b/devel/packr/Makefile new file mode 100644 index 0000000000..9966783c34 --- /dev/null +++ b/devel/packr/Makefile @@ -0,0 +1,55 @@ +# +# Copyright (C) 2020 Jeffery To +# +# This is free software, licensed under the GNU General Public License v2. +# See /LICENSE for more information. +# + +include $(TOPDIR)/rules.mk + +PKG_NAME:=packr +PKG_VERSION:=1.30.1 +PKG_RELEASE:=1 + +PKG_SOURCE_PROTO:=git +PKG_SOURCE_URL:=https://github.com/gobuffalo/packr.git +PKG_SOURCE_VERSION:=v$(PKG_VERSION) +PKG_MIRROR_HASH:=fe199299e6b7236cf9538c06d27ab1a4efd93cda2b3ea85bab9154be364760c8 + +PKG_LICENSE:=MIT +PKG_LICENSE_FILES:=LICENSE.txt +PKG_MAINTAINER:=Jeffery To + +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/gobuffalo/packr +GO_PKG_BUILD_PKG:=github.com/gobuffalo/packr/packr + +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/packr + SECTION:=devel + CATEGORY:=Development + TITLE:=Embed static files into Go binaries + URL:=https://github.com/gobuffalo/packr + DEPENDS:=$(GO_ARCH_DEPENDS) +endef + +define Package/packr/description + Packr is a simple solution for bundling static assets inside of Go + binaries. Most importantly it does it in a way that is friendly to + developers while they are developing. +endef + +$(eval $(call GoBinHostBuild)) +$(eval $(call HostBuild)) +$(eval $(call GoBinPackage,packr)) +$(eval $(call BuildPackage,packr))