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.

58 lines
1.5 KiB

  1. #
  2. # Copyright (C) 2007-2016 OpenWrt.org
  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:=rcssmin
  9. PKG_VERSION:=1.0.6
  10. PKG_RELEASE=1
  11. PKG_LICENSE:=Apache-2.0
  12. PKG_SOURCE_PROTO:=git
  13. PKG_SOURCE_URL:=https://github.com/ndparker/rcssmin.git
  14. PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
  15. PKG_SOURCE_VERSION:=4764e3bc47ca8d44be3198892e73c51d8a0a9970
  16. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz
  17. PKG_MIRROR_HASH:=a52728cc5653bf3c2a2f92954c6001338442a6e589bd364c497ba615c4365211
  18. PKG_BUILD_DEPENDS:=python python-setuptools
  19. include $(INCLUDE_DIR)/package.mk
  20. $(call include_mk, python-package.mk)
  21. define Package/rcssmin
  22. SUBMENU:=Python
  23. SECTION:=lang
  24. CATEGORY:=Languages
  25. TITLE:=Fast CSS minifier for Python
  26. MAINTAINER:=Gergely Kiss <mail.gery@gmail.com>
  27. URL:=http://opensource.perlig.de/rcssmin/
  28. DEPENDS:=+python
  29. endef
  30. define Package/rcssmin/description
  31. Fast CSS minifier for Python
  32. endef
  33. define Build/Compile
  34. $(call Build/Compile/PyMod,,install --prefix=/usr --root=$(PKG_INSTALL_DIR))
  35. endef
  36. define Build/InstallDev
  37. $(INSTALL_DIR) $(1)$(PYTHON_PKG_DIR)
  38. $(CP) \
  39. $(PKG_INSTALL_DIR)$(PYTHON_PKG_DIR)/* \
  40. $(1)$(PYTHON_PKG_DIR)
  41. endef
  42. define Package/rcssmin/install
  43. $(INSTALL_DIR) $(1)$(PYTHON_PKG_DIR)
  44. $(CP) \
  45. $(PKG_INSTALL_DIR)$(PYTHON_PKG_DIR)/* \
  46. $(1)$(PYTHON_PKG_DIR)
  47. endef
  48. $(eval $(call BuildPackage,rcssmin))