diff options
author | Jo-Philipp Wich <jo@mein.io> | 2018-12-12 09:27:44 +0100 |
---|---|---|
committer | Jo-Philipp Wich <jo@mein.io> | 2018-12-12 09:47:37 +0100 |
commit | e90431b870edc2731435f018e607a365a9910cae (patch) | |
tree | 8b38a13f27f1adf0d1dd0dfff2d699805dd67232 /contrib/package/csstidy/Makefile | |
parent | 6f0bed8c545971246ffb4e25d5adce540b4a533f (diff) |
contrib: add csstidy package
Package a fork of the CSSTidy C++ implementation for CSS minification
use in a later commit.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'contrib/package/csstidy/Makefile')
-rw-r--r-- | contrib/package/csstidy/Makefile | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/contrib/package/csstidy/Makefile b/contrib/package/csstidy/Makefile new file mode 100644 index 0000000000..bcf435e1e5 --- /dev/null +++ b/contrib/package/csstidy/Makefile @@ -0,0 +1,39 @@ +include $(TOPDIR)/rules.mk + +PKG_NAME:=csstidy +PKG_RELEASE:=1 + +PKG_SOURCE_PROTO:=git +PKG_SOURCE_URL=https://github.com/jow-/csstidy-cpp.git +PKG_SOURCE_DATE:=2018-12-12 +PKG_SOURCE_VERSION:=e1b50469604d77778ec34b20824cb2aae7510f1d +PKG_MIRROR_HASH:=3c30b668ed54571c5ae81accf031423e93eacb81e6c96825f0e09c5012ac3cb0 + +PKG_LICENSE:=LGPL-2.1 +PKG_LICENSE_FILES:=COPYING + +PKG_MAINTAINER:=Jo-Philipp Wich <jo@mein.io> + +include $(INCLUDE_DIR)/host-build.mk +include $(INCLUDE_DIR)/package.mk + +define Package/csstidy + SECTION:=utils + CATEGORY:=Utilities + TITLE:=CSSTidy parser and optimiser + DEPENDS:=+libstdcpp +endef + +define Package/csstidy/install + $(INSTALL_DIR) $(1)/usr/bin + $(INSTALL_BIN) $(PKG_BUILD_DIR)/csstidy/csstidy $(1)/usr/bin/ +endef + + +define Host/Install + $(INSTALL_DIR) $(STAGING_DIR_HOSTPKG)/bin/ + $(INSTALL_BIN) $(HOST_BUILD_DIR)/csstidy/csstidy $(1)/bin/ +endef + +$(eval $(call HostBuild)) +$(eval $(call BuildPackage,csstidy)) |