From 55674b73d7847a0f25430bff03e93046815f6a81 Mon Sep 17 00:00:00 2001 From: Jeffery To Date: Thu, 8 Oct 2020 03:21:23 +0800 Subject: [PATCH] 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 --- devel/packr/Makefile | 55 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 devel/packr/Makefile diff --git a/devel/packr/Makefile b/devel/packr/Makefile new file mode 100644 index 000000000..9966783c3 --- /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))