You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

55 lines
1.4 KiB

  1. #
  2. # Copyright (C) 2020 Jeffery To
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=packr
  9. PKG_VERSION:=1.30.1
  10. PKG_RELEASE:=1
  11. PKG_SOURCE_PROTO:=git
  12. PKG_SOURCE_URL:=https://github.com/gobuffalo/packr.git
  13. PKG_SOURCE_VERSION:=v$(PKG_VERSION)
  14. PKG_MIRROR_HASH:=fe199299e6b7236cf9538c06d27ab1a4efd93cda2b3ea85bab9154be364760c8
  15. PKG_LICENSE:=MIT
  16. PKG_LICENSE_FILES:=LICENSE.txt
  17. PKG_MAINTAINER:=Jeffery To <jeffery.to@gmail.com>
  18. HOST_BUILD_DEPENDS:=golang/host
  19. HOST_BUILD_PARALLEL:=1
  20. PKG_BUILD_DEPENDS:=golang/host
  21. PKG_BUILD_PARALLEL:=1
  22. PKG_USE_MIPS16:=0
  23. GO_PKG:=github.com/gobuffalo/packr
  24. GO_PKG_BUILD_PKG:=github.com/gobuffalo/packr/packr
  25. include $(INCLUDE_DIR)/host-build.mk
  26. include $(INCLUDE_DIR)/package.mk
  27. include ../../lang/golang/golang-host-build.mk
  28. include ../../lang/golang/golang-package.mk
  29. define Package/packr
  30. SECTION:=devel
  31. CATEGORY:=Development
  32. TITLE:=Embed static files into Go binaries
  33. URL:=https://github.com/gobuffalo/packr
  34. DEPENDS:=$(GO_ARCH_DEPENDS)
  35. endef
  36. define Package/packr/description
  37. Packr is a simple solution for bundling static assets inside of Go
  38. binaries. Most importantly it does it in a way that is friendly to
  39. developers while they are developing.
  40. endef
  41. $(eval $(call GoBinHostBuild))
  42. $(eval $(call HostBuild))
  43. $(eval $(call GoBinPackage,packr))
  44. $(eval $(call BuildPackage,packr))