packr: New package 13593/head
authorJeffery To <jeffery.to@gmail.com>
Wed, 7 Oct 2020 19:21:23 +0000 (03:21 +0800)
committerJeffery To <jeffery.to@gmail.com>
Wed, 7 Oct 2020 19:37:18 +0000 (03:37 +0800)
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 <jeffery.to@gmail.com>
devel/packr/Makefile [new file with mode: 0644]

diff --git a/devel/packr/Makefile b/devel/packr/Makefile
new file mode 100644 (file)
index 0000000..9966783
--- /dev/null
@@ -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 <jeffery.to@gmail.com>
+
+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))