1
0

Makefile 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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_BUILD_DEPENDS:=python python-setuptools
  18. include $(INCLUDE_DIR)/package.mk
  19. $(call include_mk, python-package.mk)
  20. define Package/rcssmin
  21. SUBMENU:=Python
  22. SECTION:=lang
  23. CATEGORY:=Languages
  24. TITLE:=Fast CSS minifier for Python
  25. MAINTAINER:=Gergely Kiss <mail.gery@gmail.com>
  26. URL:=http://opensource.perlig.de/rcssmin/
  27. DEPENDS:=+python
  28. endef
  29. define Package/rcssmin/description
  30. Fast CSS minifier for Python
  31. endef
  32. define Build/Compile
  33. $(call Build/Compile/PyMod,,install --prefix=/usr --root=$(PKG_INSTALL_DIR))
  34. endef
  35. define Build/InstallDev
  36. $(INSTALL_DIR) $(1)$(PYTHON_PKG_DIR)
  37. $(CP) \
  38. $(PKG_INSTALL_DIR)$(PYTHON_PKG_DIR)/* \
  39. $(1)$(PYTHON_PKG_DIR)
  40. endef
  41. define Package/rcssmin/install
  42. $(INSTALL_DIR) $(1)$(PYTHON_PKG_DIR)
  43. $(CP) \
  44. $(PKG_INSTALL_DIR)$(PYTHON_PKG_DIR)/* \
  45. $(1)$(PYTHON_PKG_DIR)
  46. endef
  47. $(eval $(call BuildPackage,rcssmin))