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.

49 lines
1.3 KiB

  1. # SPDX-License-Identifier: GPL-3.0-only
  2. #
  3. # Copyright (C) 2021 ImmortalWrt.org
  4. include $(TOPDIR)/rules.mk
  5. PKG_NAME:=statik
  6. PKG_VERSION:=0.1.7
  7. PKG_RELEASE:=$(AUTORELEASE)
  8. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  9. PKG_SOURCE_URL:=https://codeload.github.com/rakyll/statik/tar.gz/v$(PKG_VERSION)?
  10. PKG_HASH:=cd05f409e63674f29cff0e496bd33eee70229985243cce486107085fab747082
  11. PKG_LICENSE:=Apache-2.0
  12. PKG_LICENSE_FILES:=LICENSE
  13. PKG_MAINTAINER:=Tianling Shen <cnsztl@immortalwrt.org>
  14. HOST_BUILD_DEPENDS:=golang/host
  15. HOST_BUILD_PARALLEL:=1
  16. PKG_BUILD_DEPENDS:=golang/host
  17. PKG_BUILD_PARALLEL:=1
  18. PKG_USE_MIPS16:=0
  19. GO_PKG:=github.com/rakyll/statik
  20. include $(INCLUDE_DIR)/host-build.mk
  21. include $(INCLUDE_DIR)/package.mk
  22. include ../../lang/golang/golang-host-build.mk
  23. include ../../lang/golang/golang-package.mk
  24. define Package/statik
  25. SECTION:=devel
  26. CATEGORY:=Development
  27. TITLE:=Embed files into a Go executable
  28. URL:=https://github.com/rakyll/statik
  29. DEPENDS:=$(GO_ARCH_DEPENDS)
  30. endef
  31. define Package/statik/description
  32. statik allows you to embed a directory of static files into your Go
  33. binary to be later served from an http.FileSystem.
  34. endef
  35. $(eval $(call GoBinHostBuild))
  36. $(eval $(call HostBuild))
  37. $(eval $(call GoBinPackage,statik))
  38. $(eval $(call BuildPackage,statik))