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.

59 lines
1.5 KiB

  1. #
  2. # Copyright (C) 2021 CZ.NIC, z. s. p. o. (https://www.nic.cz/)
  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:=miniflux
  9. PKG_VERSION:=2.0.33
  10. PKG_RELEASE:=$(AUTORELEASE)
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=https://codeload.github.com/miniflux/v2/tar.gz/${PKG_VERSION}?
  13. PKG_HASH:=b61c9ddb62be8f1cc15a70a1c916d55f8ac47299df9c2323552eb275a36d2cc3
  14. PKG_MAINTAINER:=Michal Vasilek <michal.vasilek@nic.cz>
  15. PKG_LICENSE:=Apache-2.0
  16. PKG_LICENSE_FILES:=LICENSE
  17. PKG_BUILD_DIR:=$(BUILD_DIR)/v2-$(PKG_VERSION)
  18. PKG_BUILD_DEPENDS:=golang/host
  19. PKG_BUILD_PARALLEL:=1
  20. PKG_USE_MIPS16:=0
  21. GO_PKG:=miniflux.app
  22. GO_PKG_LDFLAGS_X:=miniflux.app/version.Version=$(PKG_VERSION)
  23. include $(INCLUDE_DIR)/package.mk
  24. include ../../lang/golang/golang-package.mk
  25. define Package/miniflux
  26. SECTION:=utils
  27. CATEGORY:=Utilities
  28. TITLE:=Feed reader
  29. USERID:=miniflux=1120:miniflux=1120
  30. URL:=https://miniflux.app
  31. DEPENDS:=$(GO_ARCH_DEPENDS) +pgsql-server
  32. endef
  33. define Package/miniflux/description
  34. Miniflux is a small and simple feed reader.
  35. endef
  36. define Package/miniflux/install
  37. $(call GoPackage/Package/Install/Bin,$(1))
  38. $(INSTALL_DIR) $(1)/etc/config/
  39. $(INSTALL_CONF) ./files/miniflux.conf $(1)/etc/config/miniflux
  40. $(INSTALL_DIR) $(1)/etc/init.d/
  41. $(INSTALL_BIN) ./files/miniflux.init $(1)/etc/init.d/miniflux
  42. endef
  43. define Package/miniflux/conffiles
  44. /etc/config/miniflux
  45. endef
  46. $(eval $(call GoBinPackage,miniflux))
  47. $(eval $(call BuildPackage,miniflux))